Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL expressions on Page 417

 
Nilesh Raje
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one please explain me the justification for the answer mentioned for Question no 2 Page217.
The book says answer is option is C.I belive that in Option c the ${init-Param['master-email']} the master-email should be in double quotes.

I am actually getting confused in EL expressions while using the dot and [] operator. Can anyone Explain me in short so that I am able to burn it my brains..!



Thanks and Regards,
Nilesh
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
${header['host']},${header["host"]}.... This code gives same output, meaning that EL treat the string enclosed in single and double quotes similarly...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic