• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jspContext vs pageContext

 
Atul Samnerkar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We get JspContext object by calling getJspContext()of SimpleTagSupport. We get pageContext object as implicit object in JSP.

Can anyone please help me to know the difference between these two objects? (jspContext vs pageContext)

Thanks,
Atul
 
Ashish Gauswami
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the api documentation:

JspContext serves as the base class for the PageContext class and abstracts all information that is not specific to servlets. This allows for Simple Tag Extensions to be used outside of the context of a request/response Servlet.

PageContext extends JspContext to provide useful context information for when JSP technology is used in a Servlet environment.

you can refer to api docs/specs for more details.
[ August 25, 2008: Message edited by: Ashish Gauswami ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic