Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL doubt  RSS feed

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!