Package jakarta.servlet.jsp
Interface JspApplicationContext
public interface JspApplicationContext
Stores application-scoped information for the JSP container.
- Since:
- JSP 2.1
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddELContextListener(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.ExpressionFactoryReturns the JSP container'sExpressionFactoryimplementation for EL use.
- 
Method Details- 
addELContextListenervoid 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
 
- 
addELResolvervoid 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: - ImplicitObjectELResolver
- ELResolverinstances registered with this method
- MapELResolver
- ListELResolver
- ArrayELResolver
- BeanELResolver
- ScopedAttributeELResolver
 - Parameters:
- resolver- an additional resolver
- Throws:
- IllegalStateException- if called after the application's- ServletContextListenershave been initialized.
 
- 
getExpressionFactoryjakarta.el.ExpressionFactory getExpressionFactory()Returns the JSP container's ExpressionFactoryimplementation for EL use.- Returns:
- an ExpressionFactoryimplementation
 
 
-