org.apache.tiles.jsp.taglib
Class UseAttributeTag

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.UseAttributeTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class UseAttributeTag
extends AttributeTagSupport

Exposes am attribute as a scripting variable within the page.

Since:
Tiles 1.0
Version:
$Rev: 527536 $ $Date: 2007-04-11 17:44:51 +0200(mer, 11 apr 2007) $
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, 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.
 void release()
          Release all allocated resources.
 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 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

release

public void release()
Release all allocated resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class AttributeTagSupport

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.

execute

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

Specified by:
execute in class AttributeTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

getScriptingVariable

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

Returns:
The scripting variable.


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