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

org.apache.tiles.jsp.taglib
Class UseAttributeTag

Package class diagram package UseAttributeTag
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.UseAttributeTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag, TryCatchFinally

public class UseAttributeTag
extends AttributeTagSupport

Exposes am attribute as a scripting variable within the page.

Since:
Tiles 1.0
Version:
$Rev: 727707 $ $Date: 2008-12-18 13:35:57 +0100 (gio, 18 dic 2008) $
See Also:
Serialized Form

Nested Class Summary
static class UseAttributeTag.Tei
          Implementation of TagExtraInfo which identifies the scripting object(s) to be made visible.
 
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
UseAttributeTag()
           
 
Method Summary
 void execute()
          Expose the requested attribute from attribute context.
 String getClassname()
          Get class name.
 String getScriptingVariable()
          Returns the scripting variable to use.
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 setClassname(String name)
          Set the class name.
 
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

UseAttributeTag

public UseAttributeTag()
Method Detail

getClassname

public String getClassname()
Get class name.

Returns:
class name

setClassname

public void setClassname(String name)
Set the class name.

Parameters:
name - The new class 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()
Expose the requested attribute from attribute context.

Specified by:
execute in class AttributeTagSupport

getScriptingVariable

public String getScriptingVariable()
Returns the scripting variable to use.

Returns:
The scripting variable.


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.