posted 17 years ago
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.