wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in HFSJ 1.4 question page no.330 question no.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt in HFSJ 1.4 question page no.330 question no.6" Watch "doubt in HFSJ 1.4 question page no.330 question no.6" New topic
Author

doubt in HFSJ 1.4 question page no.330 question no.6

pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Hi
This is the question of HFSJ1.4 at page no.330 question no.6

Its answer is given E> .I want to know why not D>

question given in book is :
Given:
<%@ page isELIgnored="true" %>
what is the effect ?(choose all that apply)
A. Nothing ,this page directive in 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.


My view is if we dont mention <el-ignored>true/false..... in DD even then it will not evaluate EL expression given in our jsp page if we have above page directive[<%@ page isELIgnored="true" %>]
in our jsp page because page directive takes priority over the DD setting.
Please correct me if i am wrong.


SCJP 5.0(75%), SCWCD 5.0(88%)
Vishal Chugh
Ranch Hand

Joined: Oct 27, 2007
Posts: 177
Hi Pradeep,

The option:
D. The JSP containing this directive should Not have any Expression Language code evaluated by the JSP container.

It is saying the JSP having such directive should not have any EL in it that is not correct , JSP page can have EL though it wont be evaluated due to such directive setting.

Thanks
Vishal
Jan Sterk
Ranch Hand

Joined: Jun 06, 2008
Posts: 139
In my HFSJ edition (aug 2004) the answer is D!


SCJP 1.4 (81%)<br />SCWCD 5 (95%)
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I also would say the answer of this question is D.

Did you check the errata?


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Errata


[My Blog]
All roads lead to JavaRanch
pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Thankx to you all Remko Strating ,Christophe Verre .........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doubt in HFSJ 1.4 question page no.330 question no.6