This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jspContext vs pageContext  RSS feed

 
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
Boost this thread!