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.
Joined: May 25, 2006
Thanks Dagbj�rn, that was what i call a spot on answer. regards Rina