• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

HFSJ Ch 7 Mock Exam #6

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya, it should be 'D'
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the errata
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Surprising . Refer https://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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the link.

It's not good if the errata list also has "errors" (not updated)
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic