org.apache.tiles.jsp.taglib
Class ImportAttributeTag

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

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: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (Wed, 11 Apr 2007) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.tiles.jsp.taglib.AttributeTagSupport
attribute, attributeContext, 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.
 java.lang.String getToName()
           Returns the name of the destination attribute.
 void setToName(java.lang.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, release, setIgnore, setName, setScope
 
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 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.

execute

public void execute()
             throws javax.servlet.jsp.JspException
Expose the requested property from attribute context.

Specified by:
execute in class AttributeTagSupport
Throws:
javax.servlet.jsp.JspException - On errors processing tag.