Class IfTag

  • All Implemented Interfaces:
    IterationTag, JspTag, Tag, Serializable

    public class IfTag
    extends ConditionalTagSupport

    Tag handler for <if> in JSTL's rtexprvalue library. Because of the support provided by the ConditionalTagSupport class, this tag is trivial enough not to require a separate base supporting class common to both libraries.

    Author:
    Shawn Bayern
    See Also:
    Serialized Form
    • Constructor Detail

      • IfTag

        public IfTag()
    • Method Detail

      • condition

        protected boolean condition()
        Description copied from class: ConditionalTagSupport

        Subclasses implement this method to compute the boolean result of the conditional action. This method is invoked once per tag invocation by doStartTag().

        Specified by:
        condition in class ConditionalTagSupport
        Returns:
        a boolean representing the condition that a particular subclass uses to drive its conditional logic.
      • setTest

        public void setTest​(boolean test)