About Question enthuware.jwpv6.2.1128 :

Moderator: admin

Post Reply
gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

About Question enthuware.jwpv6.2.1128 :

Post 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".

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post 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.

gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post by gurpreet_asrgndu »

thanks Paul

vs2013
Posts: 9
Joined: Wed Jul 31, 2013 1:57 pm
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post 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.

mtmmjava
Posts: 9
Joined: Mon Nov 04, 2013 7:49 am
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post by mtmmjava »

@vs2013, you would answer 6 then, since there's also "attribute" and "variable" directives

ramy6_1
Posts: 124
Joined: Wed Feb 12, 2014 2:44 am
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post 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 !

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post by admin »

Please read the discussion above.

emironen
Posts: 4
Joined: Thu Nov 27, 2014 8:48 am
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post 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.

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post 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?

emironen
Posts: 4
Joined: Thu Nov 27, 2014 8:48 am
Contact:

Re: About Question enthuware.jwpv6.2.1128 :

Post 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 ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests