Page 1 of 1

About Question enthuware.jwpv6.2.1158 :

Posted: Tue Jan 22, 2013 12:31 am
by KolyaSV
Hi!

The last option to choose with own explanation:
------------------------------
<% "Hello World"; %>
This is a valid scriptlet but not a valid JSP expression.
------------------------------

There is a typo in this explanation. This frament won't compile.
If we are talking in general about <% some java code; %> - yes, it is valid scriptlet.
But in our particular case we will get compilation error. So it is not valid scriplet. :)

I believe the best solution here is to rephrase option's explanation little bit.

Thank you,
Kolya

Re: About Question enthuware.jwpv6.2.1158 :

Posted: Wed Jan 23, 2013 6:54 am
by admin
You are right. The explanation has been rephrased. This could be a valid scriptlet. For example, if it is preceded by:
<% String s = %>.

thank you for your feedback!