Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cset Property doubt??

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

The cset version that works for bean properties and Map values, the syntax goes like this

<c:set target="${PetMap}" property="dogName" value="Clover" />

and they say that for the property, if the target is a Map, then the value of property is a key and if target is a bean the value of property is dogName. I'm not able to visualize the one in bold. Can anyone help me this?
[ January 23, 2007: Message edited by: Jothi Shankar Kumar Sankararaj ]
 
Elan Ram
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Map equivalent:
Map map = new HashMap();
map.put("dogName", "Clover");


Bean equivalent:
Dog dog = new Dog();
dog.setDogName("Clover");

Hope you can visualize now.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Elan. I'm getting it now!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic