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 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is PageContext Works Same As Servlet Context
 
Similar Threads
Page PageContext and application
about pageContext in jsp
which ofenclosing page variables can be automatically used by the dyna.included file?
About Page Context attributes
Please help me?