Class OtherwiseTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
org.apache.taglibs.standard.tag.common.core.WhenTagSupport
org.apache.taglibs.standard.tag.common.core.OtherwiseTag
- All Implemented Interfaces:
IterationTag,JspTag,Tag,Serializable
Tag handler for <otherwise> in JSTL.
- Author:
- Shawn Bayern
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanSubclasses implement this method to compute the boolean result of the conditional action.Methods inherited from class org.apache.taglibs.standard.tag.common.core.WhenTagSupport
doStartTagMethods inherited from class jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
release, setScope, setVarMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
OtherwiseTag
public OtherwiseTag()
-
-
Method Details
-
condition
protected boolean condition()Description copied from class:ConditionalTagSupportSubclasses implement this method to compute the boolean result of the conditional action. This method is invoked once per tag invocation by
doStartTag().- Specified by:
conditionin classConditionalTagSupport- Returns:
- a boolean representing the condition that a particular subclass uses to drive its conditional logic.
-