File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL doubt
 
Similar Threads
<c:set> tag
doubt in JSTL set tag
getting variable value
c:set
JSTL Doubt