• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt from chap:8  RSS feed

 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one doubt from the HFSJ book, chapter:8, self test example-2.

In example-2 why the answer is "c". from where this syntax come"${initParam['master-email']}. I have not seen ('') in [] operator in EL in whole the chapter in the book.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either single or double quotes can be used like that if the [] object is a map. In most cases, I've used single quotes in the past because I'll use double quotes to surround the attribute value.
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc. I got it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!