com.caucho.jstl.el
Class XmlIfTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.caucho.jstl.el.XmlIfTag
- All Implemented Interfaces:
- java.io.Serializable, IterationTag, JspTag, Tag
public class XmlIfTag
- extends TagSupport
Tag representing an "if" condition.
- See Also:
- Serialized Form
Method Summary |
int |
doStartTag()
Process the tag. |
static boolean |
evalBoolean(PageContextImpl pageContext,
Expr select)
Evaluates as a boolean. |
void |
setScope(java.lang.String scope)
Sets the scope for the variable. |
void |
setSelect(Expr select)
Sets the JSP-EL expression value. |
void |
setVar(java.lang.String var)
Sets the variable which should contain the result of the test. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlIfTag
public XmlIfTag()
setSelect
public void setSelect(Expr select)
- Sets the JSP-EL expression value.
setVar
public void setVar(java.lang.String var)
- Sets the variable which should contain the result of the test.
setScope
public void setScope(java.lang.String scope)
- Sets the scope for the variable.
doStartTag
public int doStartTag()
throws JspException
- Process the tag.
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class TagSupport
- Returns:
- SKIP_BODY to ignore the body and EVAL_BODY_INCLUDE
to evaluate the body.
- Throws:
JspException
evalBoolean
public static boolean evalBoolean(PageContextImpl pageContext,
Expr select)
throws XPathException,
JspException
- Evaluates as a boolean.
- Throws:
XPathException
JspException