About Question enthuware.jwpv6.2.738 :

Moderator: admin

Post Reply
gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

About Question enthuware.jwpv6.2.738 :

Post by gurpreet_asrgndu »

why last option viz. Throughout all future invocations of the JSP as long as the servlet engine is running. is not correct. ??

since jBean is a page scoped attribute it will be available for future invocations of jsp

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

Re: About Question enthuware.jwpv6.2.738 :

Post by admin »

As per JSP Section 1.8.2:
page - Objects with page scope are accessible only within the page where they are created. All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwarded some where else.
Therefore the attribute will not be available for future invocations of the page.
HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests