pageContext

The pageContext object provides access to the namespaces associated with a JSP page. It also provides accessors to several other JSP implicit objects.

An instance of an implementation-dependent pageContext is created by a JSP implementation class at the beginning of the generated servlet's _jspService() method. It is created via an implementation-dependent JspFactory. An example of the pageContext object's creation and its use in the creation of other implicit objects is shown in the following code snippet:

 pageContext = _jspxFactory.getPageContext(this, request, response, "errorpage.jsp", true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); ...

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.