com.sas.taglib.servlet.tbeans
Class SetPropertyTag

com.sas.taglib.servlet.tbeans.SetPropertyTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class SetPropertyTag

Used to set a property on the wrapped object of the parent tag with the value of the body of this tag. The value of the body will be transformed to the type of the property if possible.

See Also:
Serialized Form

Constructor Summary
SetPropertyTag()
           
 
Method Summary
 int doAfterBody()
          Process the body tag for this instance.
 int doStartTag()
          Process the start tag for this instance.
 java.lang.String getProperty()
          Get the name of the property to be set on the parent tag
 void setProperty(java.lang.String string)
          Set the name of the property to be set on the parent tag
 

Constructor Detail

SetPropertyTag

public SetPropertyTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag for this instance. The doStartTag() method assumes that all setter methods have been invoked before. When this method is invoked, the body has not yet been invoked.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
int designating the next course of action for the tag/jsp page.
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Process the body tag for this instance.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

getProperty

public java.lang.String getProperty()
Get the name of the property to be set on the parent tag

Returns:
The name of the property to be set on the parent tag

setProperty

public void setProperty(java.lang.String string)
Set the name of the property to be set on the parent tag

Parameters:
string -



Copyright © 2009 SAS Institute Inc. All Rights Reserved.