Class ConditionalTagSupport

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
All Implemented Interfaces:
IterationTag, JspTag, Tag, Serializable

public abstract class ConditionalTagSupport extends TagSupport

Abstract class that facilitates implementation of conditional actions where the boolean result is exposed as a JSP scoped variable. The boolean result may then be used as the test condition in a <c:when> action.

This base class provides support for:

  • Conditional processing of the action's body based on the returned value of the abstract method condition().
  • Storing the result of condition() as a Boolean object into a JSP scoped variable identified by attributes var and scope.
See Also: