Page 1 of 1

About Question enthuware.jwpv6.2.793 :

Posted: Wed Jan 09, 2013 6:07 pm
by gurpreet_asrgndu
the explanation goes like this :

page : PageContext (this)

request : ServletRequest

session : HttpSession

application : ServletContext

ain't page is a jsp implicit object of type Object ? atleast that is what is written in hfsj book. if the book is right which i guess it is since there is nothing mentioned in the errata related to this then the above explanation should be

pageContext : PageContext

Re: About Question enthuware.jwpv6.2.793 :

Posted: Thu Jan 10, 2013 7:14 am
by admin
Not sure about HFSJ but as per Section JSP.1.8.2 Objects and Scopes, the above mentioned are the 4 valid values for scope attribute.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.793 :

Posted: Sun Mar 03, 2013 2:11 pm
by Guest
Seems that first post in this thread of gurpreet_asrgndu is correct.
According to JSP specification 2.2, chapter JSP.1.8.3, implicit object of type javax.servlet.jsp.PageContext is named pageContext
There is another implicit object with name page, equal to "this", but it has only general type java.lang.Object
This remark concerns only the Explanation, not the real answer of the question.

Re: About Question enthuware.jwpv6.2.793 :

Posted: Tue Nov 24, 2015 8:36 pm
by renatumb
Guest wrote:Seems that first post in this thread of gurpreet_asrgndu is correct.
According to JSP specification 2.2, chapter JSP.1.8.3, implicit object of type javax.servlet.jsp.PageContext is named pageContext
There is another implicit object with name page, equal to "this", but it has only general type java.lang.Object
This remark concerns only the Explanation, not the real answer of the question.
Any answer ? I have the same doubt ..

Re: About Question enthuware.jwpv6.2.793 :

Posted: Tue Nov 24, 2015 8:47 pm
by admin
He is correct. The page scope is indeed implemented by a PageContext object. References to objects with page scope are stored in the pageContext object.
It has nothing to do with "this". Fixed.
thank you for your feedback!
Paul.