Package jakarta.servlet.jsp
Interface JspApplicationContext
-
public interface JspApplicationContext
Stores application-scoped information for the JSP container.
- Since:
- JSP 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addELContextListener(jakarta.el.ELContextListener listener)
Registers anELContextListener
that will be notified whenever a newELContext
is created.void
addELResolver(jakarta.el.ELResolver resolver)
Adds anELResolver
to the chain of EL variable and property management within JSP pages and Tag files.jakarta.el.ExpressionFactory
getExpressionFactory()
Returns the JSP container'sExpressionFactory
implementation for EL use.
-
-
-
Method Detail
-
addELContextListener
void addELContextListener(jakarta.el.ELContextListener listener)
Registers anELContextListener
that will be notified whenever a newELContext
is created.At the very least, any
ELContext
instantiated will have reference to theJspContext
underJspContext.class
.- Parameters:
listener
- The listener to add
-
addELResolver
void addELResolver(jakarta.el.ELResolver resolver)
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:
ImplicitObjectELResolver
ELResolver
instances registered with this methodMapELResolver
ListELResolver
ArrayELResolver
BeanELResolver
ScopedAttributeELResolver
- Parameters:
resolver
- an additional resolver- Throws:
java.lang.IllegalStateException
- if called after the application'sServletContextListeners
have been initialized.
-
getExpressionFactory
jakarta.el.ExpressionFactory getExpressionFactory()
Returns the JSP container's
ExpressionFactory
implementation for EL use.- Returns:
- an
ExpressionFactory
implementation
-
-