Class WhenTagSupport
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
org.apache.taglibs.standard.tag.common.core.WhenTagSupport
- All Implemented Interfaces:
IterationTag,JspTag,Tag,Serializable
- Direct Known Subclasses:
OtherwiseTag,WhenTag,WhenTag,WhenTag
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:
-
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 TypeMethodDescriptionintIncludes its body ifcondition()evaluates to true.Methods inherited from class jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
condition, 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
-
WhenTagSupport
public WhenTagSupport()
-
-
Method Details
-
doStartTag
Description copied from class:ConditionalTagSupportIncludes its body ifcondition()evaluates to true.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classConditionalTagSupport- Returns:
- SKIP_BODY
- Throws:
JspException- if an error occurs while processing this tag- See Also:
-