aspose file tools*
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
Author

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

Chetan Patki
Greenhorn

Joined: Jan 26, 2004
Posts: 10
Hello,

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??

cheers,
Sudhakar.
Gabriel Forro
Ranch Hand

Joined: Apr 16, 2004
Posts: 59
Hi,

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


Gabriel
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.

--Dale--
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.

cheers,
Sudhakar.
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.

Regards,
Gaurav.


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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HFS Question: Page #: 330, Question #: 6