|
||||||||||
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.tiles.taglib.GetAttributeTag
public class 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 |
---|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface org.apache.struts.tiles.taglib.ComponentConstants |
---|
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
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. |
String |
getAttribute()
Get attribute. |
boolean |
getIgnore()
Get ignore flag. |
String |
getName()
Get Name. |
String |
getRole()
Get role. |
void |
release()
Release all allocated resources. |
void |
setAttribute(String attribute)
Set attribute. |
void |
setIgnore(boolean ignore)
Set ignoring flag when attribute is not found. |
void |
setName(String value)
Set Name. |
void |
setRole(String role)
Set role. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, 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 |
Constructor Detail |
---|
public GetAttributeTag()
Method Detail |
---|
public void release()
release
in interface Tag
release
in class TagSupport
public void setAttribute(String attribute)
attribute
- Attribute.public String getAttribute()
public void setName(String value)
value
- Attribute.public 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(String role)
role
- The role the user must be in to store content.public String getRole()
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- On error processing tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |