• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL Poblem

 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refers to HFSJ mock exam chapter 8 question no 1, page 417,

given an html form that uses checkboxes to allow a user to select multipl values for a parameter called "hobbies"

the answer page says

${paramValues[hobbies][0]} is incorrect

can some body explin this?

Regards
Chaminda
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post the full question?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hobbies would have to be in quotes, otherwise EL will try to resolve it by looking for an attribute named hobbies.

Chaminda, please review the JavaRanch Naming Policy. Having "(SCJP)" in your display name is an obviously fictitious part of your name. Please update it accordingly. I recall pointing this out to you in another thread before, so this is your second warning. If you want to advertise that you are SCJP, you are more than welcome to use your signature for that, as Jothi has done.
[ February 28, 2007: Message edited by: Marc Peabody ]
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks All,

Note* : Marc I changed my Display Name
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic