• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt from chap:8

 
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!