| |
|
| java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.core.SetTag
SetTag | public class SetTag extends TagSupport (Code) | | A tag which sets a variable from the result of an expression
author: James Strachan version: $Revision: 155420 $ |
Constructor Summary | |
public | SetTag() |
isEmpty | protected boolean isEmpty(Object value)(Code) | | Parameters: value - true if the given value is null or an empty String |
isEncode | public boolean isEncode()(Code) | | Returns whether the body of this tag will be XML encoded or not.
|
setDefaultValue | public void setDefaultValue(Expression defaultValue)(Code) | | Sets the default value to be used if the value exprsesion results
in a null value or blank String
|
setEncode | public void setEncode(boolean encode)(Code) | | Sets whether the body of the tag should be XML encoded as text (so that < and > are
encoded as < and >) or leave the text as XML which is the default.
This is only used if this tag is specified with no value so that the text body of this
tag is used as the body.
|
setProperty | public void setProperty(String property)(Code) | | Sets the name of the property to set on the target object.
|
setScope | public void setScope(String scope)(Code) | | Sets the variable scope for this variable. For example setting this value to 'parent' will
set this value in the parent scope. When Jelly is run from inside a Servlet environment
then other scopes will be available such as 'request', 'session' or 'application'.
Other applications may implement their own custom scopes.
|
setTarget | public void setTarget(Object target)(Code) | | Sets the target object on which to set a property.
|
setValue | public void setValue(Expression value)(Code) | | Sets the expression to evaluate.
|
setVar | public void setVar(String var)(Code) | | Sets the variable name to define for this expression
|
|
|
|