Class WhenTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.jstl.core.ConditionalTagSupport
-
- org.apache.taglibs.standard.tag.common.core.WhenTagSupport
-
- org.apache.taglibs.standard.tag.el.core.WhenTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class WhenTag extends WhenTagSupport
Tag handler for <when> in JSTL's expression-evaluating library.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
test
-
Constructor Summary
Constructors Constructor Description WhenTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
condition()
Subclasses implement this method to compute the boolean result of the conditional action.private void
init()
void
release()
Releases any resources this ConditionalTagSupport may have (or inherit).void
setTest(java.lang.String test)
-
Methods inherited from class org.apache.taglibs.standard.tag.common.core.WhenTagSupport
doStartTag
-
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
setScope, setVar
-
-
-
-
Method Detail
-
release
public void release()
Description copied from class:ConditionalTagSupport
Releases any resources this ConditionalTagSupport may have (or inherit).- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classConditionalTagSupport
-
condition
protected boolean condition() throws javax.servlet.jsp.JspTagException
Description copied from class:ConditionalTagSupport
Subclasses implement this method to compute the boolean result of the conditional action. This method is invoked once per tag invocation by doStartTag().
- Specified by:
condition
in classConditionalTagSupport
- Returns:
- a boolean representing the condition that a particular subclass uses to drive its conditional logic.
- Throws:
javax.servlet.jsp.JspTagException
-
setTest
public void setTest(java.lang.String test)
-
init
private void init()
-
-