This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes difference between page and pagecontext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference between page and pagecontext" Watch "difference between page and pagecontext" New topic
Author

difference between page and pagecontext

shekar march chandra
Greenhorn

Joined: Jul 07, 2005
Posts: 25
Hi ppl,

can one explain the difference between the page and pagecontext.
and where we use it clearly.

Thanks,
Chandra
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
Please Can u take look at it into this..
u will find more.
Pagecontext and page


---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
shekar march chandra
Greenhorn

Joined: Jul 07, 2005
Posts: 25
hi santosh,

I checked the java link, but i couldn't understand whats exact difference and why it is.

I know that an object bound to page scope, will be available only to that particular page.

what about pagecontext object?

Thanks,
chandra
Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 226

I assume you are talking about the page and pageContext implicit objects available to a JSP.

The "page" is representative of your JSP (or rather the Servlet that it has become) that is serving the request, a synonym for "this". You wouldn't perhaps use this much. "pageContext" provides several convenience methods as can be read from the APi link provided above.


Debashish
SCJP2, SCWCD 1.4
 
 
subject: difference between page and pagecontext
 
Similar Threads
pageContext
doubt in implicit objects
Implicit objects in JSP
the difference...
difference between PageContext and Page object