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:
- Serializable, IterationTag, JspTag, Tag, 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
- Version:
- $Rev: 795099 $ $Date: 2009-07-17 16:28:22 +0200 (ven, 17 lug 2009) $
- See Also:
- Serialized Form
Method Summary |
void |
execute()
Expose the requested property from attribute context. |
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(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 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(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.
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.