File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFS Question: Page #: 330, Question #: 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFS Question: Page #: 330, Question #: 6" Watch "HFS Question: Page #: 330, Question #: 6" New topic

HFS Question: Page #: 330, Question #: 6

Chetan Patki

Joined: Jan 26, 2004
Posts: 10

Please take a look at the Question #: 6 on the page 330 in HFS. The question is as follows

Q) <%@ page isELIgnored="true" %>
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 of 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 <el-ignored>true</el-ignored> element with a URL pattern that includes this JSP.


In my opinion based what is said on page 320 about enabling/disabling EL, I think the option D is the right answer. However according to HFS the right answer is E.

Could you please let me know which is the right answer for this question and why?

Thanks<br />Chetan
Sudhakar Guntaka
Ranch Hand

Joined: Nov 21, 2004
Posts: 46
Hi chetan,
I too got the same result (D) when I am doing that mock test. But I was surprised to see the actual answer was 'E'.

What was given in the book is "page directive of EL will override the behaviour in DD" so even if we mention explicitly in DD it wont have any effect. So I think the answer might be 'D'.

If this is not true can anybody help us to clear this doubt??

Gabriel Forro
Ranch Hand

Joined: Apr 16, 2004
Posts: 59

the correct answer is D. It's a mistake in the book in my opinion.

Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
Originally posted by Gabriel Forro:
It's a mistake in the book in my opinion.

You guys really need to check-out the errata before posting. Not that I mind the chatter, but I FEEL for you guys gnashing teeth over something long settled.

Sudhakar Guntaka
Ranch Hand

Joined: Nov 21, 2004
Posts: 46
hi dale,
actually we dont know that there is an errata for this book. today only i checked out that errata is available. anyway thanks for reminding us about the errata of this book.

Gaurav Sahni
Ranch Hand

Joined: Sep 03, 2003
Posts: 56
Howdy Fellas,

another good thing would be to *search* the forum, before putting the question. We have got that nice small link called 'search' in the top right, which allows u to search from the previous posts.
I have experienced that about 80% of my queries are already raised (and answered!!!) beforehand.


To know recursion, you must first know recursion...
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
But I couldnt find this in errata.
I agree. Here's the link:
subject: HFS Question: Page #: 330, Question #: 6
It's not a secret anymore!