• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cset Property doubt??

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Elan. I'm getting it now!
 
reply
    Bookmark Topic Watch Topic
  • New Topic