Name
PageContext
Synopsis
The PageContext
class provides a set of methods for both
container implementers and JSP authors. For page authors, this class allows
access to the various attributes within the different JSP namespaces (the page,
request and session scopes) via the getAttribute()
and
setAttribute()
methods and the scope constants.
PageContext
also provides convenience
methods for retrieving ServletRequest
,
ServletResponse
, ServletConfig
and other servlet related objects, forward()
and
include()
methods for request forwarding, and
handlePageException()
for processing
exceptions through the default error page for the JSP or the
container.
public abstract class PageContext { // Public Constructors public PageContext(); // Public Constants public static final String APPLICATION; // ="javax.servlet.jsp.jspApplication” public static final int APPLICATION_SCOPE; // =4 public static final String CONFIG; // ="javax.servlet.jsp.jspConfig” public static final String EXCEPTION; // ="javax.servlet.jsp.jspException” public static final String OUT; // ="javax.servlet.jsp.jspOut” public static final String PAGE; // ="javax.servlet.jsp.jspPage” public static final int PAGE_SCOPE; // =1 public static final String PAGECONTEXT; // ="javax.servlet.jsp.jspPageContext” public static final String REQUEST; // ="javax.servlet.jsp.jspRequest” public static final int REQUEST_SCOPE; // =2 public static final String RESPONSE; // ="javax.servlet.jsp.jspResponse” public static final String SESSION; // ="javax.servlet.jsp.jspSession” ...
Get Java Enterprise in a Nutshell, Second Edition 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.