Package org.appng.taglib
Class If
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.appng.taglib.If
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class If extends javax.servlet.jsp.tagext.TagSupport
Processes the taglet's body if the given condition evaluates to be true. In the condition, any request parameter can be used. Since the condition is evaluated by anExpressionEvaluator
, 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>
- Author:
- Matthias Herlitzius
- See Also:
ExpressionEvaluator
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description If()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
String
getCondition()
void
setCondition(String condition)
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
-
getCondition
public String getCondition()
-
setCondition
public void setCondition(String condition)
-
-