This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes EL expressions on Page 417 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "EL expressions on Page 417" Watch "EL expressions on Page 417" New topic

EL expressions on Page 417

Nilesh Raje
Ranch Hand

Joined: Aug 02, 2005
Posts: 153
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,

Thanks and Regards,<br />Nilesh<br />SCJP 1.4, SCWCD 1.4
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
${header['host']},${header["host"]}.... This code gives same output, meaning that EL treat the string enclosed in single and double quotes similarly...

SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
I agree. Here's the link:
subject: EL expressions on Page 417
Similar Threads
Dout on EL question in Enthuware test Kit?
Single quote and double quote in EL []
one doubt in EL implicit object
In HFS mock exam chapter 8 Pg 417
Regarding Expression Language