org.apache.tiles.jsp.taglib
Class ImportAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.tiles.jsp.taglib.TilesTag
org.apache.tiles.jsp.taglib.AttributeTagSupport
org.apache.tiles.jsp.taglib.ImportAttributeTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
public class ImportAttributeTag
- extends AttributeTagSupport
Import attribute(s) into the specified scope.
If not explicitly named, all attributes are imported.
If the scope is not specified, page scope is assumed.
- Since:
- Tiles 1.0
- See Also:
- Serialized Form
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 |
Method Summary |
void |
execute()
Expose the requested property from attribute context. |
java.lang.String |
getToName()
Returns the name of the destination attribute. |
protected void |
reset()
Release any per-invocation resources, resetting any resources or state
that should be cleared between successive invocations of
Tag.doEndTag() and
Tag.doStartTag() . |
void |
setToName(java.lang.String toName)
Sets the name of the destination attribute. |
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 |
ImportAttributeTag
public ImportAttributeTag()
getToName
public java.lang.String getToName()
Returns the name of the destination attribute. If not specified, the name
will be the same as specified in name
attribute
- Returns:
- The destination attribute name.
setToName
public void setToName(java.lang.String toName)
Sets the name of the destination attribute. If not specified, the name
will be the same as specified in name
attribute
- Parameters:
toName
- The destination attribute name.
reset
protected void reset()
- Release any per-invocation resources, resetting any resources or state
that should be cleared between successive invocations of
Tag.doEndTag()
and
Tag.doStartTag()
.
- Overrides:
reset
in class AttributeTagSupport
execute
public void execute()
throws TilesJspException
- Expose the requested property from attribute context.
- Specified by:
execute
in class AttributeTagSupport
- Throws:
TilesJspException
- On errors processing tag.