This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Ch 7 Mock Exam #6

 
Tonyo Garcia
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stein Vom
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya, it should be 'D'
 
Sunder Ganapathy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the errata
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

It is not there in the Errata http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed

Even I'd say the answer is D.
 
Sunder Ganapathy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surprising . Refer http://www.coderanch.com/t/168153/java-Web-Component-SCWCD/certification/HF-Chaper-JSP where the author herself says it is an official errata. Thought she would have updated the errata list.
 
Tonyo Garcia
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the link.

It's not good if the errata list also has "errors" (not updated)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic