Coffee Cram: Chapter 8 Answers
Given an HTML form that uses checkboxes to allow a user to select multiple values for a parameter called
hobbies.(JSP v2.0 sections 2.2.3)
Which EL expressions evaluate to the first value of the
hobbiesparameter? (Choose all that apply.)
A.
${param.hobbies}
B.
${paramValue.hobbies}
C.
${paramValues.hobbies[0]}
D.
${paramValues.hobbies[1]}
E.
${paramValues[hobbies][0]}
F.
${paramValues[hobbies][1]}Note
-Option B is incorrect because there is no “paramValue” implicit variable.
-Option D is incorrect, arrays are 0 indexed.
-Options E and F have incorrect syntax.
Given that a web application stores the webmaster email address in the servlet context initialization parameter called
master-email.(JSP v2.0 sections 2.2.3 and 2.3.4)
Which retrieves that value? (Choose all that apply.)

A. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access