The pageContext object represents the environment for the page, containing useful information like page attributes, access to the request, response and session objects, as well as the JspWriter referenced by out. This object also has methods for including another URL's contents, and for forwarding or redirecting to another URL. For example, to forward a request to another resource from in a JSP page, we can do that by using the pageContext variable:
bhavya donepudi wrote:What is the difference between servlet context,page context and application context?
serveletcontext is javax.servlet.ServletContext class provide your server and it is available as 'application ' implicit object in jsp
usage=same as we use it in servelt
pagecontext is javax.servlet.jsp.PageContext and it is available as 'pagecontext' implicit object in jsp
usage=it has getattribute(),setattribute() method to bind the object to current page like Httpserveltcontext and it also have forward and include method