• 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

chapter:8,self test-15

 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
from chapter:8, self test example:15


assume "mybean" is an attribute & is of type MyBean

options are:

A ${mybean.name}

B ${mybean["name"]}

C ${mybean.objects.a}

D ${mybean["params"].a}

E ${mybean.params["a"]}

F ${mybean["objects"].a}

why the answers are c & f? What is "a" here.
They have describe: ""a" is not a List property and since "objects" is not a Map ,a lookup won't be performed.

-why we can't use "objects" in [] operator,it is List & in [] you can use List. They have given a specification page:1-64, I read that but still I am not getting it anyways.

Can anyone please help me?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check this other thread
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic