| |
|
| java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.beehive.netui.tags.template.Attribute
Attribute | public class Attribute extends TagSupport implements TemplateConstants(Code) | | The Attribute tag defines an attribute within a template that may be set
from a content page. For example, the page's title may be defined as an
attribute in the template and then provided by each content page using the
template. The attribute has a name and default value. If the content
page specifies a value for the attribute it will be used, otherwise
the default value is used.
SetAttributeAttribute |
Method Summary | |
public int | doStartTag() Renders the content of the attribute. | protected void | localRelease() Resets all of the fields of the tag. | public void | setDefaultValue(String defaultValue) Sets the defaultValue for the Attribute . | public void | setName(String name) Sets the name for the Attribute . |
doStartTag | public int doStartTag() throws JspException(Code) | | Renders the content of the attribute.
EVAL_PAGE to continue evaluation of the page. throws: JspException - If there is any failure in the tag. |
localRelease | protected void localRelease()(Code) | | Resets all of the fields of the tag.
|
setDefaultValue | public void setDefaultValue(String defaultValue)(Code) | | Sets the defaultValue for the Attribute .
If the content page does not define a value for this attribute
through the SetAttribute tag, then the
defaultValue will be used.
If neither a value nor defaultValue is set, then the
empty String "" will be output.
Parameters: defaultValue - The value to set the defaultValue property. |
setName | public void setName(String name)(Code) | | Sets the name for the Attribute . An
attribute may be used more than once in a template page.
Parameters: name - The name of the attribute. The name doesnot need to be unique because it may be used more than onceon the page. |
|
|
|