aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ Page 336, 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 "HFSJ Page 336, question 6" Watch "HFSJ Page 336, question 6" New topic
Author

HFSJ Page 336, question 6

Rupak Khurana
Ranch Hand

Joined: Mar 01, 2005
Posts: 89
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


SCJP 1.5<br />SCWCD 1.4
Vivek Kinra
Ranch Hand

Joined: Mar 11, 2006
Posts: 66
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

Joined: Mar 01, 2005
Posts: 89
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?
Vidya Sethuraman
Ranch Hand

Joined: Sep 28, 2003
Posts: 45
Hi,

What is the correct answer?
D or E

Thanks!


Vidya <br />(SCJP 1.4)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

This is the strange. Was the errata wrongly updated ?

Looking at previous posts :
http://www.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.


[My Blog]
All roads lead to JavaRanch
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

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


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Leigh Su
Greenhorn

Joined: Mar 16, 2006
Posts: 22
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.


SCJP 5, SCWCD 1.4, SCBCD 1.3
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

prabhu,
You're not telling why option E is true. It is not, as far as I'm concerned.
cheenu Dev
Ranch Hand

Joined: Nov 13, 2005
Posts: 276
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)


cheenujunk@gmail.com
Bryan Basham
author
Ranch Hand

Joined: Apr 30, 2001
Posts: 199
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
 
 
subject: HFSJ Page 336, question 6