aspose 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
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Is PageContext Works Same As Servlet Context
 
Similar Threads
Page PageContext and application
about pageContext in jsp
About Page Context attributes
Please help me?
which ofenclosing page variables can be automatically used by the dyna.included file?