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
About Question enthuware.jwpv6.2.793 :
Moderators: Site Manager, fjwalraven
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.793 :
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.
HTH,
Paul.
Re: About Question enthuware.jwpv6.2.793 :
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.
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.
-
- Posts: 47
- Joined: Mon Apr 08, 2013 7:55 pm
- Contact:
Re: About Question enthuware.jwpv6.2.793 :
Any answer ? I have the same doubt ..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.
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.793 :
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.
It has nothing to do with "this". Fixed.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests