Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » jasper » runtime » [javadoc | source]
org.apache.jasper.runtime
public class: PageContextImpl [javadoc | source]
java.lang.Object
   javax.servlet.jsp.JspContext
      javax.servlet.jsp.PageContext
         org.apache.jasper.runtime.PageContextImpl
Implementation of the PageContext class from the JSP spec. Also doubles as a VariableResolver for the EL.
Fields inherited from javax.servlet.jsp.PageContext:
PAGE_SCOPE,  REQUEST_SCOPE,  SESSION_SCOPE,  APPLICATION_SCOPE,  PAGE,  PAGECONTEXT,  REQUEST,  RESPONSE,  CONFIG,  SESSION,  OUT,  APPLICATION,  EXCEPTION
Constructor:
 PageContextImpl() 
Method from org.apache.jasper.runtime.PageContextImpl Summary:
findAttribute,   forward,   getAttribute,   getAttribute,   getAttributeNamesInScope,   getAttributesScope,   getELContext,   getException,   getExpressionEvaluator,   getOut,   getPage,   getRequest,   getResponse,   getServlet,   getServletConfig,   getServletContext,   getSession,   getVariableResolver,   handlePageException,   handlePageException,   include,   include,   initialize,   popBody,   proprietaryEvaluate,   pushBody,   pushBody,   release,   removeAttribute,   removeAttribute,   setAttribute,   setAttribute
Methods from javax.servlet.jsp.PageContext:
forward,   getErrorData,   getException,   getPage,   getRequest,   getResponse,   getServletConfig,   getServletContext,   getSession,   handlePageException,   handlePageException,   include,   include,   initialize,   pushBody,   release
Methods from javax.servlet.jsp.JspContext:
findAttribute,   getAttribute,   getAttribute,   getAttributeNamesInScope,   getAttributesScope,   getExpressionEvaluator,   getOut,   getVariableResolver,   popBody,   pushBody,   removeAttribute,   removeAttribute,   setAttribute,   setAttribute
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.runtime.PageContextImpl Detail:
 public Object findAttribute(String name) 
 public  void forward(String relativeUrlPath) throws ServletException, IOException 
 public Object getAttribute(String name) 
 public Object getAttribute(String name,
    int scope) 
 public Enumeration<String> getAttributeNamesInScope(int scope) 
 public int getAttributesScope(String name) 
 public ELContext getELContext() 
 public Exception getException() 
    Returns the exception associated with this page context, if any.

    Added wrapping for Throwables to avoid ClassCastException: see Bugzilla 31171 for details.

 public ExpressionEvaluator getExpressionEvaluator() 
    Provides programmatic access to the ExpressionEvaluator. The JSP Container must return a valid instance of an ExpressionEvaluator that can parse EL expressions.
 public JspWriter getOut() 
 public Object getPage() 
 public ServletRequest getRequest() 
 public ServletResponse getResponse() 
 public Servlet getServlet() 
 public ServletConfig getServletConfig() 
 public ServletContext getServletContext() 
 public HttpSession getSession() 
 public VariableResolver getVariableResolver() 
 public  void handlePageException(Exception ex) throws IOException, ServletException 
 public  void handlePageException(Throwable t) throws IOException, ServletException 
 public  void include(String relativeUrlPath) throws ServletException, IOException 
 public  void include(String relativeUrlPath,
    boolean flush) throws ServletException, IOException 
 public  void initialize(Servlet servlet,
    ServletRequest request,
    ServletResponse response,
    String errorPageURL,
    boolean needsSession,
    int bufferSize,
    boolean autoFlush) throws IOException 
 public JspWriter popBody() 
 public static Object proprietaryEvaluate(String expression,
    Class expectedType,
    PageContext pageContext,
    ProtectedFunctionMapper functionMap,
    boolean escape) throws ELException 
    Proprietary method to evaluate EL expressions. XXX - This method should go away once the EL interpreter moves out of JSTL and into its own project. For now, this is necessary because the standard machinery is too slow.
 public BodyContent pushBody() 
 public JspWriter pushBody(Writer writer) 
 public  void release() 
 public  void removeAttribute(String name) 
 public  void removeAttribute(String name,
    int scope) 
 public  void setAttribute(String name,
    Object attribute) 
 public  void setAttribute(String name,
    Object o,
    int scope)