aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ - Error in Exercise? 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 - Error in Exercise?" Watch "HFSJ - Error in Exercise?" New topic
Author

HFSJ - Error in Exercise?

Tridib Samanta
Ranch Hand

Joined: Apr 28, 2004
Posts: 128
Hi All,
I found the following question in the excercise of chapter 7.

Q.6
Given:
<%@ page isELIgnored="true" %>

What is the eefect? (Choose all that apply.)
A. Nothing, this page directive is NOT defined.

B. The directive turns off the evalution of Expresiion 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 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 DD declares a <el-ignored>true</el-ignored> elemnt with a URL pattern that includes this JSP.

Ans: E


But I think the answer should be D.
Am I right?
[ March 07, 2007: Message edited by: Tridib Samanta ]

Thanks, Tridib
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
gar tek
Greenhorn

Joined: Mar 07, 2007
Posts: 10
Yes, I think you are correct
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

EL is enabled by default and you have to explicitly set in the DD use a directive to disable it. So even I feel answer D is correct!


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Xudong Wang
Greenhorn

Joined: Jan 31, 2007
Posts: 1
I choose D
Seenikkannan krishnasamy
Greenhorn

Joined: Jan 25, 2006
Posts: 15
What a coincidence..i thought of posting this query today..
me too chosen D when i worked out on this chapters mock questions..

Thank You All .. i am taken D as an answer..

Cheers,
Seenikkannan.K
achayya matta
Ranch Hand

Joined: Oct 27, 2005
Posts: 111
i would also choose D
Promod kumar
Ranch Hand

Joined: Jun 26, 2006
Posts: 90
I checked the errata and did not find this error. Is this really an error and if it is how can it be added to the errata so others won't have to go thru the same issue.
madhav changala
Ranch Hand

Joined: Dec 20, 2005
Posts: 57
Hi I would like to you inform one thing.. from which part EL ignored will decide.. whether it is from web.xml or @page directive IsElIgnored attribute..

If both sets same meaning then there is no problem..

If both differ..

then...

Could any one come up with spec..?

ThanksInadvance

madhav


saivenumadhav
Shrenik Sakriya
Ranch Hand

Joined: May 07, 2001
Posts: 40
The EL ignorance declaration in web.xml would apply to complete web app where as the EL declaration in jsp just applies to that particular jsp page.

If you specify "true" in web.xml to ignore el & you specify false in all the jsps to isELIgnored then the jsp declaration would take precedence over the web.xml declaration & all the ELs in all the JSPs would be evaluated.


SCJP1.2 88%<br />SCWCD1.4 89%<br />CCNA 94%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFSJ - Error in Exercise?
 
Similar Threads
HFSJ , Page 336, Question 6
Doubt on mock exam isELIgnored question
HFSJ page 336 on Question 6 --
doubt in HFSJ 1.4 question page no.330 question no.6
Head First Servlets & JSP ...