This exam is found on Head First
Servlets &
JSP page 330 Item #6.
Given:
What is the effect? (Choose all that apply.)
A. Nothing, this
page directive is NOT defined.
B. The directive turns off the evaluation of Expression Language code by
the JSP container in all the web application's JSPs.
C. The JSP containing this directive should be treated by the JSP
container as a well-formed XML file.
D. The JSP containing this directive should NOT have any Expression
Language code evaluated by the JSP container.
E. This page directive will only turn off EL evaluation if the DD declares
a
element with a URL
pattern that includes this JSP.
My answer here is "D" but the book says "E" (see page 336). I even tried this using
Tomcat and the DD declaration of el-ignored is not necessary to disable EL on one JSP page.
I even looked at the errata list
here but it is not an error.
Can someone please help explain why the answer is E?
Thanks.