December 2000
Intermediate to advanced
574 pages
17h 3m
English
pageContext
|
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 |
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.
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 ...Read now
Unlock full access