Class IfTag
- java.lang.Object
-
- jakarta.servlet.jsp.tagext.TagSupport
-
- jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
-
- org.apache.taglibs.standard.tag.common.xml.IfTag
-
- All Implemented Interfaces:
IterationTag,JspTag,Tag,Serializable
public class IfTag extends ConditionalTagSupport
Tag handler for <if> in JSTL's XML library.
- 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()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancondition()Subclasses implement this method to compute the boolean result of the conditional action.voidrelease()Releases any resources this ConditionalTagSupport may have (or inherit).voidsetSelect(String select)-
Methods inherited from class jakarta.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, setScope, setVar
-
Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
release
public void release()
Description copied from class:ConditionalTagSupportReleases any resources this ConditionalTagSupport may have (or inherit).- Specified by:
releasein interfaceTag- Overrides:
releasein classConditionalTagSupport- See Also:
Tag.release()
-
condition
protected boolean condition() throws JspTagExceptionDescription 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.
- Throws:
JspTagException- on failure
-
setSelect
public void setSelect(String select)
-
-