org.chwf.taglib.jutil
Class ElseIfTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.chwf.taglib.base.LifeCycleTagSupport
              |
              +--org.chwf.taglib.base.ObjectTagSupport
                    |
                    +--org.chwf.taglib.jutil.IfTag
                          |
                          +--org.chwf.taglib.jutil.ElseIfTag
All Implemented Interfaces:
Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ElseIfTag
extends IfTag

Tag handler for the <elseIf> tag.

Author:
Paul Strack
See Also:
Serialized Form

Fields inherited from class org.chwf.taglib.jutil.IfTag
LAST_IF_RESULT
 
Fields inherited from class org.chwf.taglib.base.ObjectTagSupport
DEFAULT_OBJECT
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ElseIfTag()
           
 
Method Summary
 boolean getTestResult()
          Get results of test.
 void setEl(java.lang.String el)
          Calls superclass method.
 void setObject(java.lang.String objectName)
          Calls superclass method.
 void setProperty(java.lang.String property)
          Calls superclass method.
 
Methods inherited from class org.chwf.taglib.jutil.IfTag
cleanup, doEnd, doStart
 
Methods inherited from class org.chwf.taglib.base.ObjectTagSupport
findObject, getEl, getObject, getProperty, getTagResult, getTagResult, getVar, setVar, storeDefaultObject
 
Methods inherited from class org.chwf.taglib.base.LifeCycleTagSupport
addAttribute, addParameter, doEndTag, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 

Constructor Detail

ElseIfTag

public ElseIfTag()
Method Detail

setObject

public void setObject(java.lang.String objectName)
               throws javax.servlet.jsp.JspException
Calls superclass method. Is present here because of a bug in some servlet engines that requires tag attibute setters to be defined in the tag class itself.
Overrides:
setObject in class IfTag
Parameters:
objectName - The object name.
Throws:
javax.servlet.jsp.JspException - For errors.

setProperty

public void setProperty(java.lang.String property)
                 throws javax.servlet.jsp.JspException
Calls superclass method. Is present here because of a bug in some servlet engines that requires tag attibute setters to be defined in the tag class itself.
Overrides:
setProperty in class IfTag
Parameters:
property - The property name.
Throws:
javax.servlet.jsp.JspException - For errors.

setEl

public void setEl(java.lang.String el)
Calls superclass method. Is present here because of a bug in some servlet engines that requires tag attibute setters to be defined in the tag class itself.
Overrides:
setEl in class IfTag
Parameters:
el - The EL expression.

getTestResult

public boolean getTestResult()
                      throws javax.servlet.jsp.JspException
Get results of test.
Overrides:
getTestResult in class IfTag
Returns:
false if the last test was true; otherwise the value of the given object property.
Throws:
javax.servlet.jsp.JspException - For expression language parse errors.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.