How does EL look for an attribute?

How does EL look for an attribute in JSP? and how can I disable it?

Does anyone know EL performance?

+1


a source to share


2 answers


In EL, if an object is not an implicit object, it searches through different scopes for an object with a given name. The order in which the search is performed is below:

  • Page area
  • Request area
  • Session scope
  • Application area


To disable EL: <%@ page isELIgnored ="true" %>

+3


a source


EL is resolved using ELResolver chain. The order of EL resolvers is as follows:

  • ImplicitObjectELResolver

  • ELResolver

    registered with this method, in the order they are registered.
  • MapELResolver

  • ListELResolver

  • ArrayELResolver

  • BeanELResolver

  • ScopedAttributeELResolver



Each EL marker is assigned this resolver chain.

0


a source







All Articles