org.displaytag.tags
Class SetPropertyTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.displaytag.tags.SetPropertyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ELSetPropertyTag

public class SetPropertyTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Version:
$Revision: 1.12 $ ($Author: fgiust $)
Author:
epesh, Fabrizio Giustina
See Also:
Serialized Form

Field Summary
 
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_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
SetPropertyTag()
           
 
Method Summary
 int doEndTag()
          Passes attribute information up to the parent TableTag.
 int doStartTag()
           
 void setName(java.lang.String propertyName)
          Sets the name of the property.
 void setValue(java.lang.String propertyValue)
          Sets the value of the property.
 
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

SetPropertyTag

public SetPropertyTag()
Method Detail

setName

public void setName(java.lang.String propertyName)
Sets the name of the property.

Parameters:
propertyName - String

setValue

public void setValue(java.lang.String propertyValue)
Sets the value of the property.

Parameters:
propertyValue - String

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
             throws MissingAttributeException
Passes attribute information up to the parent TableTag.

When we hit the end of the tag, we simply let our parent (which better be a TableTag) know what the user wants to change a property value, and we pass the name/value pair that the user gave us, up to the parent

Returns:
TagSupport.EVAL_PAGE
Throws:
MissingAttributeException - if no value or body content has been set
See Also:
Tag.doEndTag()


Copyright © 2002-2005 the Displaytag team. All Rights Reserved.