public class IfTag extends ConditionalTagSupport
Tag handler for <if> in JSTL's rtexprvalue library. Because of the support provided by the ConditionalTagSupport class, this tag 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(boolean test) |
doStartTag, setScope, setVar
public void release()
ConditionalTagSupport
release
in interface javax.servlet.jsp.tagext.Tag
release
in class ConditionalTagSupport
protected boolean condition()
ConditionalTagSupport
Subclasses 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 ConditionalTagSupport
public void setTest(boolean test)
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.