Page 1 of 1

About Question enthuware.jwpv6.2.922 :

Posted: Sat Jul 13, 2013 6:39 am
by JoeAllen
Option 3.<%! String uid = LoginHelper.login(request) %>
! is used for declarations.//explanation of why it is wrong

Is it wrong because of "String uid = LoginHelper.login(request)" being in declaration, or because of missing ";"?

Re: About Question enthuware.jwpv6.2.922 :

Posted: Sat Jul 13, 2013 7:40 am
by admin
If you think of it as a declaration then it is wrong for 2 reasons: request parameter is not available in a declaration and missing ;.
If you think of it as a scriptlet, it is wrong because ! is not used in a scriptlet and missing ;.

HTH,
Paul.