public class ChooseTag extends TagSupport
Tag handler for <choose> in JSTL.
<choose> is a very simple tag that acts primarily as a container; it always includes its body and allows exactly one of its child <when> tags to run. Since this tag handler doesn't have any attributes, it is common.core to both the rtexprvalue and expression- evaluating versions of the JSTL library.
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
ChooseTag() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Default processing of the start tag, returning SKIP_BODY.
|
boolean |
gainPermission()
Returns status indicating whether a subtag should run or not.
|
void |
release()
Release state.
|
void |
subtagSucceeded()
Called by a subtag to indicate that it plans to evaluate its
body.
|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public void release()
TagSupport
release
in interface Tag
release
in class TagSupport
Tag.release()
public boolean gainPermission()
public void subtagSucceeded()
public int doStartTag() throws JspException
TagSupport
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if an error occurs while processing this tagTag.doStartTag()
Copyright © 2021 JBoss by Red Hat. All rights reserved.