Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is PageContext Works Same As Servlet Context

 
vijay saraf
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mouly Kumaraswamy
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eideo Guo
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the lifecycle was difference
 
vijay saraf
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic