• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Chetan Patki
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Sudhakar Guntaka
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

the correct answer is D. It's a mistake in the book in my opinion.
 
Dale Seng
Ranch Hand
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Renu Radhika
Ranch Hand
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I couldnt find this in errata.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic