• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

the correct answer is D. It's a mistake in the book in my opinion.
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But I couldnt find this in errata.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic