org.apache.struts.taglib.tiles
Class GetAttributeTag
TagSupport
org.apache.struts.taglib.tiles.GetAttributeTag
- ComponentConstants
public class GetAttributeTag
extends TagSupport
Retrieve the value of the specified component/template attribute property,
and render it to the current JspWriter as a String.
The usual toString() conversion is applied on the found value.
attribute
private String attribute
isErrorIgnored
private boolean isErrorIgnored
Do we ignore error if attribute is not found.
Default value is false
, which will throw an exception.
role
private String role
Role attribute
GetAttributeTag
public GetAttributeTag()
Default constructor.
doEndTag
public int doEndTag()
throws JspException
Close tag.
getAttribute
public String getAttribute()
Get attribute.
getIgnore
public boolean getIgnore()
Get ignore flag.
false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silently
getName
public String getName()
Get Name.
Set as getAttribute().
getRole
public String getRole()
Get role.
release
public void release()
Release all allocated resources.
setAttribute
public void setAttribute(String attribute)
Set attribute.
setIgnore
public void setIgnore(boolean ignore)
Set ignoring flag when attribute is not found.
ignore
- default: false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silently
setName
public void setName(String value)
Set Name.
Same as setAttribute().
setRole
public void setRole(String role)
Set role.
role
- The role the user must be in to store content.
Copyright B) 2000-2007 - The Apache Software Foundation