File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is PageContext Works Same As Servlet Context