This project has retired. For details please refer to its Attic page.
ImportAttributeTag (Tiles 2 2.1.4 API)

org.apache.tiles.jsp.taglib
Class ImportAttributeTag

Package class diagram package ImportAttributeTag
java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.tiles.jsp.taglib.TilesTag
          extended by org.apache.tiles.jsp.taglib.AttributeTagSupport
              extended by 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

Field Summary
 
Fields inherited from class org.apache.tiles.jsp.taglib.AttributeTagSupport
attribute, attributeContext, attributeValue, container, ignore, name, scope, scopeName
 
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
 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 org.apache.tiles.jsp.taglib.AttributeTagSupport
doEndTag, doStartTag, getIgnore, getName, getScope, getScope, getScopeId, setIgnore, setName, setScope
 
Methods inherited from class org.apache.tiles.jsp.taglib.TilesTag
doCatch, doFinally, release
 
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
 

Constructor Detail

ImportAttributeTag

public ImportAttributeTag()
Method Detail

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.