javax.servlet.jsp
Interface JspApplicationContext


public interface JspApplicationContext

Stores application-scoped information for the JSP container.

Since:
2.1

Method Summary
 void addELContextListener(ELContextListener listener)
           Registers an ELContextListener that will notified whenever a new ELContext is created.
 void addELResolver(ELResolver resolver)
           Adds an ELResolver to the chain of EL variable and property management within JSP pages and Tag files.
 ExpressionFactory getExpressionFactory()
           Returns the JSP container's ExpressionFactory implementation for EL use.
 

Method Detail

addELContextListener

void addELContextListener(ELContextListener listener)

Registers an ELContextListener that will notified whenever a new ELContext is created.

At the very least, any ELContext instantiated will have reference to the JspContext under JspContext.class.

Parameters:
listener -

addELResolver

void addELResolver(ELResolver resolver)
                   throws IllegalStateException

Adds an ELResolver to the chain of EL variable and property management within JSP pages and Tag files.

JSP has a default set of ELResolvers to chain for all EL evaluation:

Parameters:
resolver - an additional resolver
Throws:
IllegalStateException - if called after the application's ServletContextListeners have been initialized.

getExpressionFactory

ExpressionFactory getExpressionFactory()

Returns the JSP container's ExpressionFactory implementation for EL use.

Returns:
an ExpressionFactory implementation

(Built by coreservlets)

As of July 2010, there were no online versions of the servlet 3.0, JSP 2.2, and EL 2.2 Javadocs, except as part of the huge Java EE 6 API. So, I built them myself from the Tomcat 7 source code.

Java EE TutorialsJava EE Training