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, pageContextEVAL_BODY_AGAINEVAL_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, setValuepublic void release()
TagSupportrelease in interface Tagrelease in class TagSupportTag.release()public boolean gainPermission()
public void subtagSucceeded()
public int doStartTag()
throws JspException
TagSupportdoStartTag in interface TagdoStartTag in class TagSupportJspException - if an error occurs while processing this tagTag.doStartTag()Copyright © 2019 JBoss by Red Hat. All rights reserved.