This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSTL doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSTL doubt" Watch "JSTL doubt" New topic
Author

JSTL doubt

Brijesh shah
Ranch Hand

Joined: Mar 16, 2007
Posts: 90
Hello;


In the following example i know it will print Kathy, brij, bartner..but i dont understand in <c:set>tag what the use of property attribute and how to use it practically...
<c:set var = "userLevel" property="name" >
Kathy, brij, bartner
</c:set><br>
userLevel is : ${userLevel}

If possible then kindly explain this doubt with example.

Thanks.

Regards;
Brijesh Shah
-SCJP
-target SCWCD
James Mark
Ranch Hand

Joined: Jul 05, 2007
Posts: 115
I think var version of <c:set/> cant have the property attribute.have you tried it?
target version can take one.But the target must evaluate to
Map or Bean Else container will throw an Exception.


SCJP1.4(96%) SCWCD1.4(92%)
 
jQuery in Action, 2nd edition
 
subject: JSTL doubt
 
Similar Threads
doubt in JSTL set tag
JSTL Doubt
<c:set> tag
c:set
getting variable value