|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.struts.taglib.tiles.GetAttributeTag
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.
| Field Summary | |
private java.lang.String |
attribute
|
private boolean |
isErrorIgnored
Do we ignore error if attribute is not found. |
private java.lang.String |
role
Role attribute |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface org.apache.struts.taglib.tiles.ComponentConstants |
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
GetAttributeTag()
Default constructor. |
|
| Method Summary | |
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. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String attribute
private java.lang.String role
private boolean isErrorIgnored
false, which will throw an exception.
| Constructor Detail |
public GetAttributeTag()
| Method Detail |
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic 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.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - On error processing tag.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||