posted 17 years ago
Hi Rina,
According to the JSTL 1.2 spec, the valid formats of <c:set> are the following when used to set bean properties/map values:
As you can see, both target and property are required tag attributes. It is only the value attribute that alternatively can be specified by the tag body. Hence, your second code snippet is a violation of the spec.
Cheers,
Dagbj�rn