Interface JspApplicationContext


public interface JspApplicationContext
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 JspFactory.getJspApplicationContext(jakarta.servlet.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.
Since:
JSP 2.1
See Also: