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:
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.
Parameters: resolver - The new ELResolver throws: IllegalStateException - if an attempt is made tocall this method after all ServletContextListener shave had their contextInitialized methods invoked. |