JSTL core
Tag set


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.

  1. The user has set "var", "value" and (optionally) "scope" attributes.

  2. The user has set "target", "property", and "value" attributes.

The first case takes precedence over the second.



Tag Information
Tag Classorg.apache.taglibs.standard.tag.rt.core.SetTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
varfalsefalsejava.lang.StringName 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.
valuefalsetruejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Expression to be evaluated.
targetfalsetruejava.lang.StringTarget object whose property will be set. Must evaluate to a JavaBeans object with setter property property, or to a java.util.Map object.
propertyfalsetruejava.lang.StringName of the property to be set in the target object.
scopefalsefalsejava.lang.StringScope for var.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.