Adds an ELResolver
to affect the way EL variables
and properties are resolved for EL expressions appearing in JSP pages
and tag files.
For example, in the EL expression ${employee.lastName}, an
ELResolver
determines what object "employee"
references and how to find its "lastName" property.
When evaluating an expression, the JSP container will consult a
set of standard resolvers as well as any resolvers registered via
this method. The set of resolvers are consulted in the following
order:
- {@link javax.servlet.jsp.el.ImplicitObjectELResolver}
ELResolver
s registered via this method, in the
order in which they are registered.
- {@link javax.el.MapELResolver}
- {@link javax.el.ListELResolver}
- {@link javax.el.ArrayELResolver}
- {@link javax.el.BeanELResolver}
- {@link javax.servlet.jsp.el.ScopedAttributeELResolver}
It is illegal to register an ELResolver
after the
application has received any request from the client. If an
attempt is made to register an ELResolver
after that time,
an IllegalStateException
is thrown.
This restriction is
in place to allow the JSP container to optimize for the common
case where no additional ELResolver
s are in the chain,
aside from the standard ones. It is permissible to add
ELResolver
s before or after initialization to
a CompositeELResolver
that is already in the chain.
It is not possible to remove an ELResolver
registered
with this method, once it has been registered.