Package jakarta.servlet.jsp
Interface JspApplicationContext
-
public interface JspApplicationContextStores application-scoped information for the JSP container.
- Since:
- JSP 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddELContextListener(jakarta.el.ELContextListener listener)Registers anELContextListenerthat will be notified whenever a newELContextis created.voidaddELResolver(jakarta.el.ELResolver resolver)Adds anELResolverto the chain of EL variable and property management within JSP pages and Tag files.jakarta.el.ExpressionFactorygetExpressionFactory()Returns the JSP container'sExpressionFactoryimplementation for EL use.
-
-
-
Method Detail
-
addELContextListener
void addELContextListener(jakarta.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(jakarta.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:
java.lang.IllegalStateException- if called after the application'sServletContextListenershave been initialized.
-
getExpressionFactory
jakarta.el.ExpressionFactory getExpressionFactory()
Returns the JSP container's
ExpressionFactoryimplementation for EL use.- Returns:
- an
ExpressionFactoryimplementation
-
-