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.
Tag Information
Tag Class
org.apache.taglibs.standard.tag.rt.core.SetTag
TagExtraInfo Class
None
Body Content
JSP
Display Name
None
Attributes
Name
Required
Request-time
Type
Description
var
false
false
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
true
javax.el.ValueExpression (must evaluate to java.lang.Object)
Expression to be evaluated.
target
false
true
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
true
java.lang.String
Name of the property to be set in the target object.