Page 1 of 1

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

Posted: Thu Feb 10, 2011 1:50 pm
by ETS User
there is now import for java.util.Date!!

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

Posted: Thu Feb 10, 2011 6:46 pm
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.

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

Posted: Sun Mar 06, 2011 3:02 pm
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:

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

Posted: Sun Mar 06, 2011 8:42 pm
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.

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

Posted: Sun Dec 15, 2013 7:20 am
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

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

Posted: Sun Dec 15, 2013 7:43 am
by admin
import tag can be used multiple times but option 1 has two autoFlush tags that is why it is invalid.

-Paul.