• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrong answer in HFSJ Coffee Cram

 
Mohit Jain
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

HFSJ page# 330, Following mock question seems to have wrong answer in the book -

Given:
<%@ page isELIgnored="true" %>
What is the effect?

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 <el-ignored>true</el-ignored> element with a URL pattern that includes this JSP.

As per HFSJ, correct answer is E. But I think correct answer should be D.

Reason - On page# 320 it says - "The page directive takes priority over the DD setting!". Therefore, irrespective of DD if JSP directive turns off EL evaluation, the EL code should not be evaluated by JSP container.

Please explain.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't it already in the errata ? (p336)
Also referred in this thread.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic