About Question enthuware.jwpv6.2.689 :

Moderator: admin

Post Reply
basamajoe
Posts: 21
Joined: Fri Apr 26, 2013 3:40 am
Contact:

About Question enthuware.jwpv6.2.689 :

Post by basamajoe »

Why is this answer wrong?
* String cartid = (String) pageContext.findAttribute("cartid");
It will search for the attribute in page, request, session, and context scopes in that order. If the attribute is in the session scope, it will be returned.

The answer says that it will be returned, if it is in session scope!

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

Re: About Question enthuware.jwpv6.2.689 :

Post by admin »

I see this option is indeed marked as correct.
If you like our products and services, please help us by posting your review here.

basamajoe
Posts: 21
Joined: Fri Apr 26, 2013 3:40 am
Contact:

Re: About Question enthuware.jwpv6.2.689 :

Post by basamajoe »

My mistake

In case of the answer 2.
Would answer 2 be wrong because to get session we need pageContext.getSession();?

String cartid = (String) session.getAttribute("cartid");

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

Re: About Question enthuware.jwpv6.2.689 :

Post by admin »

Yes.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 63 guests