About Question enthuware.jwpv6.2.922 :

Moderator: admin

Post Reply
JoeAllen
Posts: 13
Joined: Thu Jul 11, 2013 11:22 pm
Contact:

About Question enthuware.jwpv6.2.922 :

Post 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 ";"?

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

Re: About Question enthuware.jwpv6.2.922 :

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests