Class IfTag

  • All Implemented Interfaces:
    jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

    public class IfTag
    extends jakarta.servlet.jsp.jstl.core.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
    • Field Summary

      • Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      IfTag()  
    • Constructor Detail

      • IfTag

        public IfTag()
    • Method Detail

      • release

        public void release()
        Specified by:
        release in interface jakarta.servlet.jsp.tagext.Tag
        Overrides:
        release in class jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
      • condition

        protected boolean condition()
        Specified by:
        condition in class jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
      • setTest

        public void setTest​(boolean test)