How does EL search for an attribute?
Question
How does EL search for an attribute in JSP? and how to disable it?
does any one know the performance of EL?
Solution
In EL, if an object is not an implicit object it searches through the various scopes for an object of the given name. The order in which the search takes place is below:
- Page scope
- Request scope
- Session scope
- Application scope
To disable EL: <%@ page isELIgnored ="true" %>
OTHER TIPS
An EL is resolved using an ELResolver chain. The order of the EL resolvers is as following:
ImplicitObjectELResolver
ELResolver
s registered via this method, in the order in which they are registered.MapELResolver
ListELResolver
ArrayELResolver
BeanELResolver
ScopedAttributeELResolver
Each token of EL is given this resolver chain to resolve.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow