Home » apache-tomcat-6.0.26-src » javax.servlet.jsp.jstl » core » [javadoc | source]
javax.servlet.jsp.jstl.core
abstract public class: ConditionalTagSupport [javadoc | source]
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      javax.servlet.jsp.jstl.core.ConditionalTagSupport

All Implemented Interfaces:
    IterationTag, Serializable

Abstract class that facilitates implementation of conditional actions where the boolean result is exposed as a JSP scoped variable. The boolean result may then be used as the test condition in a <c:when> action.

This base class provides support for:

Fields inherited from javax.servlet.jsp.tagext.TagSupport:
id,  pageContext
Constructor:
 public ConditionalTagSupport() 
Method from javax.servlet.jsp.jstl.core.ConditionalTagSupport Summary:
condition,   doStartTag,   release,   setScope,   setVar
Methods from javax.servlet.jsp.tagext.TagSupport:
doAfterBody,   doEndTag,   doStartTag,   findAncestorWithClass,   getId,   getParent,   getValue,   getValues,   release,   removeValue,   setId,   setPageContext,   setParent,   setValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.servlet.jsp.jstl.core.ConditionalTagSupport Detail:
 abstract protected boolean condition() throws JspTagException

    Subclasses implement this method to compute the boolean result of the conditional action. This method is invoked once per tag invocation by doStartTag().

 public int doStartTag() throws JspException 
    Includes its body if condition() evaluates to true.
 public  void release() 
    Releases any resources this ConditionalTagSupport may have (or inherit).
 public  void setScope(String scope) 
    Sets the 'scope' attribute.
 public  void setVar(String var) 
    Sets the 'var' attribute.