Saturday, December 02, 2006

JSTL <c:set> Tag

Sets values for variables.
Taglib
: http://java.sun.com/jsp/jstl/core (Core)
Prefix: c
Attributes:
value | * = value to set.
var | String = variable holding the value. If not used, target/property MUST be used.
scope | String = scope for var e.g. page, session, request, or application.
target | JavaBean object, Map = collection or bean specified by 'property' below.
property | String = name of the target above.
Example:
<c:set var="pizzaSelected" value="true" />