Class NotFoundELResolver

java.lang.Object
jakarta.el.ELResolver
jakarta.servlet.jsp.el.NotFoundELResolver

public class NotFoundELResolver extends jakarta.el.ELResolver
Defines variable resolution when all other resolvers fail.
Since:
JSP 3.1
  • Constructor Details

    • NotFoundELResolver

      public NotFoundELResolver()
  • Method Details

    • getValue

      public Object getValue(jakarta.el.ELContext context, Object base, Object property)
      Always returns null since in normal usage ScopedAttributeELResolver will handle calls to ELResolver.getValue(ELContext, Object, Object).

      The propertyResolved property of the ELContext object is always set to true by this resolver before returning.

      Specified by:
      getValue in class jakarta.el.ELResolver
      Parameters:
      context - The context of this evaluation.
      base - Ignored
      property - Ignored
      Returns:
      Always null
      Throws:
      NullPointerException - if context is null
      jakarta.el.PropertyNotFoundException - If the provided context contains a Boolean object with value Boolean.TRUE as the value associated with the key jakarta.servlet.jsp.el.NotFoundELResolver.class. This is to support implementation of the errorOnELNotFound page/tag directive.
      jakarta.el.ELException - if an exception was thrown while performing the property or variable resolution. The thrown exception must be included as the cause property of this exception, if available.
    • getType

      public Class<Object> getType(jakarta.el.ELContext context, Object base, Object property)
      Always returns null since in normal usage ScopedAttributeELResolver will handle calls to ELResolver.getType(ELContext, Object, Object).
      Specified by:
      getType in class jakarta.el.ELResolver
      Parameters:
      context - The context of this evaluation.
      base - Ignored
      property - Ignored
      Returns:
      Always null
      Throws:
      NullPointerException - if context is null
      jakarta.el.ELException - if an exception was thrown while performing the property or variable resolution. The thrown exception must be included as the cause property of this exception, if available.
    • setValue

      public void setValue(jakarta.el.ELContext context, Object base, Object property, Object val)
      Always a NO-OP since in normal usage ScopedAttributeELResolver will handle calls to ELResolver.setValue(ELContext, Object, Object, Object).
      Specified by:
      setValue in class jakarta.el.ELResolver
      Parameters:
      context - The context of this evaluation.
      base - Ignored
      property - Ignored
      val - Ignored
      Throws:
      NullPointerException - if context is null.
      jakarta.el.ELException - if an exception was thrown while performing the property or variable resolution. The thrown exception must be included as the cause property of this exception, if available.
    • isReadOnly

      public boolean isReadOnly(jakarta.el.ELContext context, Object base, Object property)
      Always returns false since in normal usage ScopedAttributeELResolver will handle calls to ELResolver.isReadOnly(ELContext, Object, Object).
      Specified by:
      isReadOnly in class jakarta.el.ELResolver
      Parameters:
      context - The context of this evaluation.
      base - Ignored
      property - Ignored
      Returns:
      Always false
      Throws:
      NullPointerException - if context is null.
      jakarta.el.ELException - if an exception was thrown while performing the property or variable resolution. The thrown exception must be included as the cause property of this exception, if available.
    • getCommonPropertyType

      public Class<String> getCommonPropertyType(jakarta.el.ELContext context, Object base)
      Always returns null since in normal usage ScopedAttributeELResolver will handle calls to ELResolver.getCommonPropertyType(ELContext, Object).
      Specified by:
      getCommonPropertyType in class jakarta.el.ELResolver
      Parameters:
      context - Ignored
      base - Ignored
      Returns:
      Always null