aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ page 380 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 "HFSJ page 380" Watch "HFSJ page 380" New topic
Author

HFSJ page 380

Vivek Gupta
Greenhorn

Joined: May 02, 2005
Posts: 23
HFSJ page 380
Code magnets exercise:
What can be the different EL expressions which can be put to print the same result?

Leelu's dog Clyde's toys are: stick, neighbour's cat, and a Barbie doll head
My try-
${person["name"]}'s dog ${person["dog"].name}'s toys are: ${person["dog"].toys[0].name},${person["dog"].toys[1].name}, and a ${person["dog"].toys[2].name}

Can it be written by without using the dot (.) operator and "only using" the [] operator.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFSJ page 380