Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Originally posted by Manikandan Jayaraman:
I read it this way ... Is it like this?
Page - available for all transactions within the entire JSP page.
Application - For all servlets of same application (or) Common to all applications, if no explicit application is defined. (how do you define an application explicitly?)
Session - Available to all transactions that happen in the same browser window.
Request - Only for that request.
Can anyone clear my doubt. Thanks in advance.
Take a look at SRV3.1 from the Servlet Spec (link in my signature). It defines and explains the concept of a contex in a servlet app.(how do you define an application explicitly?)
Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Originally posted by Manikandan Jayaraman:
Opening back a chain after a long time. But This time, I have read 70% of Servlet Spec and Worked on Servlets too. Now getting back again into JSPs.
Please confirm if the below is right!
A Bean with a Scope of "Page" - the scope of this bean is the shortest. This bean will not be available if request is forwarded to other JSPs. Is this right?
Where as, if Scope of "request", the bean is available to all pages where this request is forwarded too.
Is this right? Please advise.
Thanks and Regards,
Mani
Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Originally posted by Manikandan Jayaraman:
A Bean with a Scope of "Page" - the scope of this bean is the shortest. This bean will not be available if request is forwarded to other JSPs. Is this right?
SCJP, SCWCD
you can see that a "Forward" actually makes a new request, and the beans available in the old request are lost
SCJP, SCWCD
Those are the largest trousers in the world! Especially when next to this ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|