• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

HFSJ Page 336, question 6

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Given :
<%@ page isELIgnored="true" %>

what is the effect?

A. Noting, this page directive is not defined

B. The directive turns off thee valuation of EL 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 EL 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.


I answered D and so does the book. But when I look at the errata available on O'Reilly website, it says the answer should be E and not D

My question is how worthy that errata is? Some of the items that I find in that errata are already fixed in the book and some not.

pls enlighten me.....
AUM
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

My question is how worthy that errata is? Some of the items that I find in that errata are already fixed in the book and some not.



I am sure errata is older than the latest print in market... and Yes many of the errors mentioned in errata are already fixed in the current print..

I agree with your answer D..
 
Rupak Khurana
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well the errata says "last updated on Feb 23 2006"? should we trust that errata, looks like it has mistakes too as in the question above.

would the authors pls clarify?
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

What is the correct answer?
D or E

Thanks!
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the strange. Was the errata wrongly updated ?

Looking at previous posts :
https://coderanch.com/t/169640/java-Web-Component-SCWCD/certification/HF-mock-exam-chapter
{336} Question #6;
The answer should be D, not E

But now, the errata says :
{336} Question #6;
The answer should be E, not D

Puzzling...
But D is definitly the right answer.
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Option " E " is most appropriate answer. because Option D says,


The JSP containing this directive should not have any EL code evaluated by the JSP container

Eventhough In JSP, you add page attribute "isELIgnored="true"". That page can have EL expression, but it will not get evaluated(It will be consider as plain text.).
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by prabhu venkatachalam:
...The JSP containing this directive should not have any EL code evaluated by the JSP container
Eventhough In JSP, you add page attribute "isELIgnored="true"". That page can have EL expression, but it will not get evaluated(It will be consider as plain text.).



Hi Prabhu:
How about option D read like The JSP containing this directive should not have any EL code evaluated by the JSP container?
and option E read like 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.

So I think the answer is D.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
prabhu,
You're not telling why option E is true. It is not, as far as I'm concerned.
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
whats conclusion option d or e...
do we have to put in dd
<el-ignored> for ignoring el...
i mean is it mandatory???
(page dir. overrules dd but is there to be dd ???necesarry)
 
author
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, how late can I be to this party?!?!?!

The only correct answer is D. The reason why E is not correct is that it is not necessary for the <el-ignored> declaration in the deployment descriptor for the isElIgnored page attribute to be active. Remember, an exam option to be correct it must be correct under *all* circumstances.

Also, if there every was an errata on this, then it has been removed.

Thanks for you patience.

-Bryan
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic