*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes cset Property doubt?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "cset Property doubt??" Watch "cset Property doubt??" New topic
Author

cset Property doubt??

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

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 ]

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Elan Ram
Ranch Hand

Joined: Dec 14, 2006
Posts: 40
Map equivalent:
Map map = new HashMap();
map.put("dogName", "Clover");


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

Hope you can visualize now.


Thanks and regards,
Elan
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Thanks Elan. I'm getting it now!
 
 
subject: cset Property doubt??