public class If extends TagSupport
ExpressionEvaluator
, the JSP expression language needs to be
used.
Usage:
<!-- assumed there's a request parameter named 'foo'--> <appNG:if condition="foo eq 'bar'">Bar!</appNG:if>
ExpressionEvaluator
,
Serialized Formid, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
If() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag() |
String |
getCondition() |
void |
setCondition(String condition) |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public String getCondition()
public void setCondition(String condition)
Copyright © 2011–2017 aiticon GmbH. All rights reserved.