Package javax.servlet.jsp
Interface JspApplicationContext
public interface JspApplicationContext
Stores application-scoped information for the JSP container.
- Since:
- JSP 2.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddELContextListener(javax.el.ELContextListener listener) Registers anELContextListenerthat will be notified whenever a newELContextis created.voidaddELResolver(javax.el.ELResolver resolver) Adds anELResolverto the chain of EL variable and property management within JSP pages and Tag files.javax.el.ExpressionFactoryReturns the JSP container'sExpressionFactoryimplementation for EL use.
-
Method Details
-
addELContextListener
void addELContextListener(javax.el.ELContextListener listener) Registers anELContextListenerthat will be notified whenever a newELContextis created.At the very least, any
ELContextinstantiated will have reference to theJspContextunderJspContext.class.- Parameters:
listener- The listener to add
-
addELResolver
void addELResolver(javax.el.ELResolver resolver) Adds an
ELResolverto 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:
ImplicitObjectELResolverELResolverinstances registered with this methodMapELResolverListELResolverArrayELResolverBeanELResolverScopedAttributeELResolver
- Parameters:
resolver- an additional resolver- Throws:
IllegalStateException- if called after the application'sServletContextListenershave been initialized.
-
getExpressionFactory
javax.el.ExpressionFactory getExpressionFactory()Returns the JSP container's
ExpressionFactoryimplementation for EL use.- Returns:
- an
ExpressionFactoryimplementation
-