This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Servlets and the fly likes Is PageContext Works Same As Servlet Context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is PageContext Works Same As Servlet Context" Watch "Is PageContext Works Same As Servlet Context" New topic
Author

Is PageContext Works Same As Servlet Context

vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Hello All,

I just wanted to know that meaning of "PageContext" objext.is this object plays same role as "ServletContext".......or it is any thing else?

Thanks,
Vijay Saraf.


Thanks
Vijay Saraf.
Mouly Kumaraswamy
Greenhorn

Joined: Apr 17, 2006
Posts: 23
PageContext is a subclass of JSP Context. It is used to get/store attributes from all scopes, get handle to the writer, and few other functions.

One ServletContext is defined for one web application per JVM. It is primarily used to hold application level attributes.


SCJP 1.4 SCWD 1.4
Eideo Guo
Greenhorn

Joined: Aug 16, 2005
Posts: 29
the lifecycle was difference
vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Thanks Mr. Kumaraswamy.
i was confused only because PageContext is extending JspContext,so i thought that it will be similar to ServletContext.

Thanks,
Vijay Saraf.
 
Consider Paul's rocket mass heater.
 
subject: Is PageContext Works Same As Servlet Context
 
It's not a secret anymore!