About Question enthuware.jwpv6.2.1128 :
Moderator: admin
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
About Question enthuware.jwpv6.2.1128 :
didnt understood the option for first choice. the explanation given is as below:
JSP directives are meant to affect the generation of the output and usually they don't produce any output. However, there are certain cases (for example, <%@page contentType="text/html"%>, where certain data may be written to the output.
are you talking about <html> </html> tags that are generated upon setting contentType="text/html".
JSP directives are meant to affect the generation of the output and usually they don't produce any output. However, there are certain cases (for example, <%@page contentType="text/html"%>, where certain data may be written to the output.
are you talking about <html> </html> tags that are generated upon setting contentType="text/html".
-
- Site Admin
- Posts: 10385
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
No, when you set the content type, the HTTP Response that is sent to the client contains a header that has that content type name. So that means, this directive writes that content type name to the output.
HTH,
Paul.
HTH,
Paul.
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
thanks Paul
-
- Posts: 9
- Joined: Wed Jul 31, 2013 1:57 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
Hi,
What about a "tag" directive? I answered 4 because "tag" directive is also applicable?
<%@ tag body-content... %>
I realize that this is related to tag files, but aren't tag files using JSP syntax? So could this apply to a "tag" diretive since JSP syntax is used?
Thanks,
Victor.
What about a "tag" directive? I answered 4 because "tag" directive is also applicable?
<%@ tag body-content... %>
I realize that this is related to tag files, but aren't tag files using JSP syntax? So could this apply to a "tag" diretive since JSP syntax is used?
Thanks,
Victor.
-
- Posts: 9
- Joined: Mon Nov 04, 2013 7:49 am
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
@vs2013, you would answer 6 then, since there's also "attribute" and "variable" directives
-
- Posts: 124
- Joined: Wed Feb 12, 2014 2:44 am
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
Hello ,
I also think that the first option is confusing , since even <%@page contentType is valid , but that still can't generate output !
I also think that the first option is confusing , since even <%@page contentType is valid , but that still can't generate output !
-
- Site Admin
- Posts: 10385
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
Please read the discussion above.
-
- Posts: 4
- Joined: Thu Nov 27, 2014 8:48 am
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
I think that the answer "A JSP directive should be used to import multiple java packages used in the JSP file." is confusing.
JSP directive CAN be used, but not SHOULD be. The previous answer also can be changed.
JSP directive CAN be used, but not SHOULD be. The previous answer also can be changed.
-
- Site Admin
- Posts: 10385
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
Let me put it this way, which other directive can you use to import multiple packages in a JSP file?emironen wrote:I think that the answer "A JSP directive should be used to import multiple java packages used in the JSP file." is confusing.
JSP directive CAN be used, but not SHOULD be. The previous answer also can be changed.
-
- Posts: 4
- Joined: Thu Nov 27, 2014 8:48 am
- Contact:
Re: About Question enthuware.jwpv6.2.1128 :
Lost in Translation, sorryadmin wrote:Let me put it this way, which other directive can you use to import multiple packages in a JSP file?emironen wrote:I think that the answer "A JSP directive should be used to import multiple java packages used in the JSP file." is confusing.
JSP directive CAN be used, but not SHOULD be. The previous answer also can be changed.

Who is online
Users browsing this forum: No registered users and 5 guests