net.sourceforge.stripes.tag
Class VarTagSupport
java.lang.Object
net.sourceforge.stripes.tag.StripesTagSupport
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
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 |
var
protected String var
scope
protected String scope
VarTagSupport
public VarTagSupport()
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.