org.apache.struts.taglib.nested

Class NestedPropertyTag

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.
Version:
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
Since:
Struts 1.1

Field Summary

private String
originalName
private String
originalNest
private String
originalProperty
private String
property

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.
String
getName()
The getters and setters required to set a tags name property.
String
getProperty()
Getter method for the property property
void
release()
JSP method to release all resources held by the tag.
void
setName(String newNamed)
The setter for the name property
void
setProperty(String newProperty)
Setter method for the property property Also, only setting the original property value to those values not set by the nested logic.

Field Details

originalName

private String originalName

originalNest

private String originalNest

originalProperty

private String originalProperty

property

private String property

Method Details

doAfterBody

public int doAfterBody()
            throws JspException
Render the resulting content evaluation.
Returns:
int JSP continuation directive.

doEndTag

public int doEndTag()
            throws JspException
Evaluate the rest of the page
Returns:
int JSP continuation directive.

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.

getName

public String getName()
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

getProperty

public String getProperty()
Getter method for the property property
Specified by:
getProperty in interface NestedPropertySupport
Returns:
String value of the property property

release

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

setName

public void setName(String newNamed)
The setter for the name property
Specified by:
setName in interface NestedNameSupport
Parameters:
newNamed - new String value to set the name property to

setProperty

public void setProperty(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

Copyright B) 2000-2007 - The Apache Software Foundation