Sets the result of an expression evaluation based on the
value of the attributes. If "scope" the is present, but has a zero
length or is equal to the string "page", TagException
is
thrown with an informative error message, ensuring page location
information is saved.
This handler operates in one of two ways.
The user has set "var", "value" and (optionally) "scope" attributes.
The user has set "target", "property", and "value" attributes.
The first case takes precedence over the second.
Name | Required | Type | Description |
---|---|---|---|
var | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the exported scoped variable to hold the value specified in the action. The type of the scoped variable is whatever type the value expression evaluates to. |
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Expression to be evaluated. |
target | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Target object whose property will be set. Must evaluate to a JavaBeans object with setter property property, or to a java.util.Map object. |
property | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the property to be set in the target object. |
scope | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Scope for var. |