About Question enthuware.jwpv6.2.793 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

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

About Question enthuware.jwpv6.2.793 :

Post 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

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

Re: About Question enthuware.jwpv6.2.793 :

Post 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.

Guest

Re: About Question enthuware.jwpv6.2.793 :

Post 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.

renatumb
Posts: 47
Joined: Mon Apr 08, 2013 7:55 pm
Contact:

Re: About Question enthuware.jwpv6.2.793 :

Post 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 ..

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

Re: About Question enthuware.jwpv6.2.793 :

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests