org.chwf.taglib.jutil
Class AttributeTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.chwf.taglib.base.LifeCycleBodyTagSupport
                    |
                    +--org.chwf.taglib.jutil.ParamTag
                          |
                          +--org.chwf.taglib.jutil.AttributeTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, Parameterized, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class AttributeTag
extends ParamTag

Tag handler for the <attribute> tag. It is equivalent to the <param> tag, except that it updates the nearest matching <element> tag rather than the parent tag. Despite its name, this tag adds data to its parent tag via its addParameter() method.

Author:
Paul Strack
See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
AttributeTag()
           
 
Method Summary
protected  Parameterized getParametrizedTag()
          Derived parametrized tag to be updated.
 void setName(java.lang.String name)
          The parameter name.
 void setObject(java.lang.String objectName)
          The object name.
 void setProperty(java.lang.String property)
          The object property being retrieved.
 
Methods inherited from class org.chwf.taglib.jutil.ParamTag
cleanup, doEnd, findObject, getName, getObject, getProperty
 
Methods inherited from class org.chwf.taglib.base.LifeCycleBodyTagSupport
addAttribute, addParameter, doEndTag, doStart, doStartTag, getAttribute, getAttributeNames, getParameter, getParameterNames, init, printAttributes
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

AttributeTag

public AttributeTag()
Method Detail

setName

public void setName(java.lang.String name)
The parameter name.
Overrides:
setName in class ParamTag
Parameters:
name - The parameter name.

setProperty

public void setProperty(java.lang.String property)
                 throws javax.servlet.jsp.JspException
The object property being retrieved. Defaults to var if absent.
Overrides:
setProperty in class ParamTag
Parameters:
property - The property name.
Throws:
javax.servlet.jsp.JspException - If the property cannot be initialized.

setObject

public void setObject(java.lang.String objectName)
               throws javax.servlet.jsp.JspException
The object name. Always optional. The tag will use the default object if no object can is specified.
Overrides:
setObject in class ParamTag
Parameters:
objectName - The object's name for lookup.
Throws:
javax.servlet.jsp.JspException - If the object filter cannot be found.

getParametrizedTag

protected Parameterized getParametrizedTag()
Derived parametrized tag to be updated.
Overrides:
getParametrizedTag in class ParamTag
Returns:
The parametrized tag.


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