|
||||||||||
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.ImportAttributeTag
public class ImportAttributeTag
Import attribute from component to requested scope. Attribute name and scope are optional. If not specified, all component attributes are imported in page scope.
Field Summary | |
---|---|
protected boolean |
isErrorIgnored
Are errors ignored. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
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 | |
---|---|
ImportAttributeTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Clean up after processing this enumeration. |
int |
doStartTag()
Expose the requested property from component context. |
boolean |
getIgnore()
Get ignore flag. |
String |
getName()
Get the name. |
String |
getScope()
Get scope. |
void |
release()
Release all allocated resources. |
void |
setIgnore(boolean ignore)
Set ignore flag. |
void |
setName(String name)
Set the name. |
void |
setScope(String scope)
Set the scope. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, 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 |
---|
protected boolean isErrorIgnored
ignore
.
Default value is false
, which throws an exception.
Only "attribute not found" - errors are ignored.
Constructor Detail |
---|
public ImportAttributeTag()
Method Detail |
---|
public void release()
release
in interface Tag
release
in class TagSupport
public String getName()
public void setName(String name)
name
- The new namepublic void setScope(String scope)
scope
- Scope.public String getScope()
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 int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- On errors processing tag.public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- On errors processing tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |