net.sourceforge.stripes.tag
Class VarTagSupport

java.lang.Object
  extended by net.sourceforge.stripes.tag.StripesTagSupport
      extended by net.sourceforge.stripes.tag.VarTagSupport
All Implemented Interfaces:
JspTag, Tag
Direct Known Subclasses:
FormatTag

public abstract class VarTagSupport
extends StripesTagSupport

Provides support for tags that allow assigning a value in a named scope. The "var" and "scope" properties are provided, as is an export(Object) method that assigns a value to the given name in the given scope.

Author:
Ben Gunter

Field Summary
protected  String scope
           
protected  String var
           
 
Fields inherited from class net.sourceforge.stripes.tag.StripesTagSupport
pageContext, parentTag
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
VarTagSupport()
           
 
Method Summary
protected  void export(Object value)
          Assigns the value to an attribute named by var in the named scope.
 String getScope()
          Get the scope in which the value will be stored
 String getVar()
          Get the name of the variable to which the value will be assigned
 void setScope(String scope)
          Set the scope in which the value will be stored
 void setVar(String var)
          Set the name of the variable to which the value will be assigned
 
Methods inherited from class net.sourceforge.stripes.tag.StripesTagSupport
doEndTag, doStartTag, getActionBeanType, getActionBeanUrl, getPageContext, getParent, getParentTag, getTagStack, popPageContextAttributes, pushPageContextAttributes, release, setPageContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

protected String var

scope

protected String scope
Constructor Detail

VarTagSupport

public VarTagSupport()
Method Detail

getScope

public String getScope()
Get the scope in which the value will be stored


setScope

public void setScope(String scope)
Set the scope in which the value will be stored


getVar

public String getVar()
Get the name of the variable to which the value will be assigned


setVar

public void setVar(String var)
Set the name of the variable to which the value will be assigned


export

protected void export(Object value)
Assigns the value to an attribute named by var in the named scope.

Parameters:
value - the object to be exported


? Copyright 2005-2006, Stripes Development Team.