public class IfTag extends ConditionalTagSupport
Tag handler for <if> in JSTL's expression-evaluating library. Because of the support provided by the ConditionalTagSupport class, thistag is trivial enough not to require a separate base supporting class common to both libraries.
| Constructor and Description |
|---|
IfTag() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
condition()
Subclasses implement this method to compute the boolean result
of the conditional action.
|
void |
release()
Releases any resources this ConditionalTagSupport may have (or inherit).
|
void |
setTest(String test) |
doStartTag, setScope, setVarpublic void release()
ConditionalTagSupportrelease in interface javax.servlet.jsp.tagext.Tagrelease in class ConditionalTagSupportprotected boolean condition()
throws javax.servlet.jsp.JspTagException
ConditionalTagSupportSubclasses implement this method to compute the boolean result of the conditional action. This method is invoked once per tag invocation by doStartTag().
condition in class ConditionalTagSupportjavax.servlet.jsp.JspTagExceptionpublic void setTest(String test)
Copyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.