Class WhenTagSupport

  • All Implemented Interfaces:
    jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
    Direct Known Subclasses:
    OtherwiseTag, WhenTag, WhenTag, WhenTag

    public abstract class WhenTagSupport
    extends jakarta.servlet.jsp.jstl.core.ConditionalTagSupport

    WhenTagSupport is an abstract class that facilitates implementation of <when>-style tags in both the rtexprvalue and expression-evaluating libraries. It also supports <otherwise>.

    In particular, this base class does the following:

    • overrides ConditionalTagSupport.doStartTag() to implement the appropriate semantics of subtags of <choose>
    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
      WhenTagSupport()  
    • Constructor Detail

      • WhenTagSupport

        public WhenTagSupport()
    • Method Detail

      • doStartTag

        public int doStartTag()
                       throws jakarta.servlet.jsp.JspException
        Specified by:
        doStartTag in interface jakarta.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
        Throws:
        jakarta.servlet.jsp.JspException