org.apache.struts.taglib.tiles
public class GetAttributeTag extends javax.servlet.jsp.tagext.TagSupport implements ComponentConstants
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute |
private boolean |
isErrorIgnored
Do we ignore error if attribute is not found.
|
private java.lang.String |
role
Role attribute
|
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY
Constructor and Description |
---|
GetAttributeTag()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Close tag.
|
java.lang.String |
getAttribute()
Get attribute.
|
boolean |
getIgnore()
Get ignore flag.
|
java.lang.String |
getName()
Get Name.
|
java.lang.String |
getRole()
Get role.
|
void |
release()
Release all allocated resources.
|
void |
setAttribute(java.lang.String attribute)
Set attribute.
|
void |
setIgnore(boolean ignore)
Set ignoring flag when attribute is not found.
|
void |
setName(java.lang.String value)
Set Name.
|
void |
setRole(java.lang.String role)
Set role.
|
private java.lang.String attribute
private java.lang.String role
private boolean isErrorIgnored
false
, which will throw an exception.public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public void setAttribute(java.lang.String attribute)
attribute
- Attribute.public java.lang.String getAttribute()
public void setName(java.lang.String value)
value
- Attribute.public java.lang.String getName()
public void setIgnore(boolean ignore)
ignore
- default: false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silentlypublic boolean getIgnore()
false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silentlypublic void setRole(java.lang.String role)
role
- The role the user must be in to store content.public java.lang.String getRole()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- On error processing tag.Copyright ? 2000-2014 - The Apache Software Foundation