About Question enthuware.jwpv6.2.1158 :
Posted: Tue Jan 22, 2013 12:31 am
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
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