File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Wrong answer in HFSJ Coffee Cram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Wrong answer in HFSJ Coffee Cram" Watch "Wrong answer in HFSJ Coffee Cram" New topic
Author

Wrong answer in HFSJ Coffee Cram

Mohit Jain
Ranch Hand

Joined: Jun 04, 2007
Posts: 74
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.


SCJP 5.0, SCWCD in progress
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Isn't it already in the errata ? (p336)
Also referred in this thread.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wrong answer in HFSJ Coffee Cram