Page 1 of 1

About Question enthuware.jwpv6.2.1128 :

Posted: Tue Jan 15, 2013 3:37 pm
by gurpreet_asrgndu
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".

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Thu Jan 17, 2013 8:32 pm
by admin
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.

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Fri Jan 18, 2013 2:27 am
by gurpreet_asrgndu
thanks Paul

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Fri Aug 16, 2013 6:17 pm
by vs2013
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.

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Sun Nov 10, 2013 7:17 am
by mtmmjava
@vs2013, you would answer 6 then, since there's also "attribute" and "variable" directives

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Sun Feb 23, 2014 10:35 am
by ramy6_1
Hello ,

I also think that the first option is confusing , since even <%@page contentType is valid , but that still can't generate output !

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Mon Feb 24, 2014 11:41 am
by admin
Please read the discussion above.

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Fri Nov 28, 2014 1:04 pm
by emironen
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.

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Fri Nov 28, 2014 8:34 pm
by admin
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.
Let me put it this way, which other directive can you use to import multiple packages in a JSP file?

Re: About Question enthuware.jwpv6.2.1128 :

Posted: Sat Nov 29, 2014 5:29 am
by emironen
admin wrote:
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.
Let me put it this way, which other directive can you use to import multiple packages in a JSP file?
Lost in Translation, sorry ;)