Stores application-scoped information relevant to JSP containers.
The JSP container must create a single instance of
JspApplicationContext for each
ServletContext instance.
An instance of JspApplicationContext is obtained by
invoking the static getJspApplicationContext(ServletContext) method,
passing the ServletContext of the corresponding web
application.
The JspApplicationContext provides the following services
to JSP applications:
Allows registration of ELResolvers, which are used to
resolve variables in EL expressions contained in JSP pages and
tag files.
Provides an instance of ExpressionFactory for those
applications or frameworks that need to perform programmatic
evaluation of EL expressions instead of allowing the JSP
container to do it for them.
Allows the attachment of ELContextListener instances
for notification whenever a new ELContext is created.
This is necessary when an application wishes to make custom
context objects available to their pluggable
ELResolvers.
The JSP container must create a single instance of
JspApplicationContextfor eachServletContextinstance.An instance of
JspApplicationContextis obtained by invoking the static getJspApplicationContext(ServletContext) method, passing theServletContextof the corresponding web application.The
JspApplicationContextprovides the following services to JSP applications:ELResolvers, which are used to resolve variables in EL expressions contained in JSP pages and tag files.ExpressionFactoryfor those applications or frameworks that need to perform programmatic evaluation of EL expressions instead of allowing the JSP container to do it for them.ELContextListenerinstances for notification whenever a newELContextis created. This is necessary when an application wishes to make custom context objects available to their pluggableELResolvers.