org.apache.struts.taglib.nested

Class NestedRootTag

Implemented Interfaces:
NestedNameSupport, NestedPropertySupport, NestedTagSupport

public class NestedRootTag
extends BodyTagSupport
implements NestedNameSupport

NestedRootTag. The only other addition in this nested suite of tags. This tag allows for a nested structure to start without relying on the bean and workings of the FormTag. Useful for view pages that don't update when returning to the server, or use hyperlinks rather than form submits. The Bean that it uses can come out of a jsp:useBean tag or define another bean that's already in scope. As long as the other Struts tags can find the bean by name, it'll work. 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
name
private String
originalName
private String
originalNesting
private String
originalNestingName

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()
Getter method for the 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 name)
Setter method for the name property
void
setProperty(String property)
Setter method for the property property

Field Details

name

private String name

originalName

private String originalName

originalNesting

private String originalNesting

originalNestingName

private String originalNestingName

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()
Getter method for the name property
Specified by:
getName in interface NestedNameSupport
Returns:
String value of the 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 name)
Setter method for the name property
Specified by:
setName in interface NestedNameSupport
Parameters:
name - new value for the name property

setProperty

public void setProperty(String property)
Setter method for the property property
Specified by:
setProperty in interface NestedPropertySupport
Parameters:
property - new value for the property property

Copyright B) 2000-2007 - The Apache Software Foundation