About Question com.enthuware.ets.scwcd.v5.2.125 :

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scwcd.v5.2.125 :

Post by ETS User »

there is now import for java.util.Date!!

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

Re: About Question com.enthuware.ets.scwcd.v5.2.125 :

Post by admin »

Hello,
The question contains JSP code "fragments". These are not complete contents of a file. You need to assume that whatever information is not specified does not affect the answer.

HTH,
Paul.

rakeshy

Re: About Question com.enthuware.ets.scwcd.v5.2.125 :

Post by rakeshy »

What is the difference between option 4 & 5 ? If option 4 is correct why Is`nt option 5 ? Could anyone please explain?

Thanks. :oops:

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

Re: About Question com.enthuware.ets.scwcd.v5.2.125 :

Post by admin »

Option 4 has the code in curly braces { and } option 5 does not. When option 4 is translated to servlet code, it becomes an instance initializer and is valid. This is explained in the given explanation.

leonardo_ndo
Posts: 1
Joined: Wed Dec 04, 2013 4:59 pm
Contact:

Re: About Question com.enthuware.ets.scwcd.v5.2.125 :

Post by leonardo_ndo »

why not option 1 ?

as i know, i can declare as many import tags as i want. And i pasted these loc`s in a jsp page, and no errors has occurred.

Regards,

Leonardo

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

Re: About Question com.enthuware.ets.scwcd.v5.2.125 :

Post by admin »

import tag can be used multiple times but option 1 has two autoFlush tags that is why it is invalid.

-Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests