Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "cset Property doubt??" Watch "cset Property doubt??" New topic

cset Property doubt??

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

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();

Hope you can visualize now.

Thanks and regards,
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Thanks Elan. I'm getting it now!
I agree. Here's the link:
subject: cset Property doubt??
jQuery in Action, 3rd edition