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!
About Question enthuware.jwpv6.2.689 :
Moderator: admin
-
- Posts: 21
- Joined: Fri Apr 26, 2013 3:40 am
- Contact:
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.689 :
I see this option is indeed marked as correct.
If you like our products and services, please help us by posting your review here.
-
- Posts: 21
- Joined: Fri Apr 26, 2013 3:40 am
- Contact:
Re: About Question enthuware.jwpv6.2.689 :
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");
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");
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.689 :
Yes.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 44 guests