org.apache.struts.taglib.nested
Class NestedPropertyTag

java.lang.Object
  extended byBodyTagSupport
      extended byorg.apache.struts.taglib.nested.NestedPropertyTag
All Implemented Interfaces:
NestedNameSupport, NestedPropertySupport, NestedTagSupport

public class NestedPropertyTag
extends BodyTagSupport
implements NestedNameSupport

NestedPropertyTag. The one of only two additions in this nested suite of tags. This is so that you can specify extra levels of nesting in one elegant tag rather than having to propagate and manage an extra dot notated property in nested child tags. It's simply recognised by the helper class and it's property is added to the nesting list.

Since:
Struts 1.1
Version:
$Revision: 1.13 $ $Date: 2004/03/14 06:23:47 $
See Also:
Serialized Form

Field Summary
private  java.lang.String originalName
           
private  java.lang.String originalNest
           
private  java.lang.String originalProperty
           
private  java.lang.String property
           
 
Constructor Summary
NestedPropertyTag()
           
 
Method Summary
 int doAfterBody()
          Render the resulting content evaluation.
 int doEndTag()
          Evaluate the rest of the page
 int doStartTag()
          Overriding method of the heart of the tag.
 java.lang.String getName()
          The getters and setters required to set a tags name property.
 java.lang.String getProperty()
          Getter method for the property property
 void release()
          JSP method to release all resources held by the tag.
 void setName(java.lang.String newNamed)
          The setter for the name property
 void setProperty(java.lang.String newProperty)
          Setter method for the property property Also, only setting the original property value to those values not set by the nested logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property

private java.lang.String property

originalNest

private java.lang.String originalNest

originalName

private java.lang.String originalName

originalProperty

private java.lang.String originalProperty
Constructor Detail

NestedPropertyTag

public NestedPropertyTag()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: NestedNameSupport
The getters and setters required to set a tags name property.

Specified by:
getName in interface NestedNameSupport
Returns:
String value of the tags' name property

setName

public void setName(java.lang.String newNamed)
Description copied from interface: NestedNameSupport
The setter for the name property

Specified by:
setName in interface NestedNameSupport
Parameters:
newNamed - new String value to set the name property to

getProperty

public java.lang.String getProperty()
Getter method for the property property

Specified by:
getProperty in interface NestedPropertySupport
Returns:
String value of the property property

setProperty

public void setProperty(java.lang.String newProperty)
Setter method for the property property Also, only setting the original property value to those values not set by the nested logic.

Specified by:
setProperty in interface NestedPropertySupport
Parameters:
newProperty - new value for the property property

doStartTag

public int doStartTag()
               throws JspException
Overriding method of the heart of the tag. Gets the relative property and tells the JSP engine to evaluate its body content.

Returns:
int JSP continuation directive.
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Render the resulting content evaluation.

Returns:
int JSP continuation directive.
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Evaluate the rest of the page

Returns:
int JSP continuation directive.
Throws:
JspException

release

public void release()
JSP method to release all resources held by the tag.



Copyright ? 2000-2006 - The Apache Software Foundation