Name
pageContext
Synopsis
Variable Name: |
pageContext |
Class Name: |
javax.servlet.jsp.PageContext |
Extends: |
None |
Implements: |
None |
Implemented by: |
A concrete subclass of this abstract class is provided as an internal container-dependent class |
JSP Page Type: |
Available in both regular JSP pages and error pages |
Description
A PageContext
instance
provides access to all the JSP scopes and several page attributes,
and offers a layer above the container implementation details to
enable a container to generate portable JSP implementation classes.
The JSP page scope is represented by PageContext
attributes. A unique instance of this object is created by the web
container and assigned to the pageContext
variable
for each request.
Class Summary
public abstract class PageContext { // Constants public static final int APPLICATION_SCOPE; public static final int PAGE_SCOPE; public static final int REQUEST_SCOPE; public static final int SESSION_SCOPE; // Constructor public PageContext( ); // Methods public abstract java.lang.Object findAttribute(String name); public abstract void forward(String relativeUrlPath) throws ServletException, java.io.IOException; public abstract Object getAttribute(String name); public abstract Object getAttribute(String name, int scope); public abstract java.util.Enumeration getAttributeNamesInScope(int scope); public abstract int getAttributesScope(String name); public abstract Exception getException( ); public abstract JspWriter getOut( ); public abstract Object ...
Get 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.