Class OtherwiseTag

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

    public class OtherwiseTag
    extends WhenTagSupport

    Tag handler for <otherwise> in JSTL.

    Author:
    Shawn Bayern
    See Also:
    Serialized Form
    • Field Summary

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

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

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

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      OtherwiseTag()  
    • Constructor Detail

      • OtherwiseTag

        public OtherwiseTag()
    • 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.