File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in HFS in chapter 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in HFS in chapter 6" Watch "Doubt in HFS in chapter 6" New topic
Author

Doubt in HFS in chapter 6

V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
At page 330 chapter 6
Question 6 of Mock Exam

<%@page isELignored="true"%?

a) the jsp containing this directive should not have any expression code


b) this page directive will only turn off EL evaluation if DD declares a <el-ignored>true</el-ignored> element
Nitin Vashishtha
Ranch Hand

Joined: Mar 26, 2008
Posts: 31
I think the correct answer should be:
the jsp containing this directive should not have any expression code

because if we have declared isELIgnored="true" in our page,it will override the DD settings for this jsp page,no matter what you have specified in DD.


Nitin
SCJP 91%, TOFAG 9 certified 89%
Reesha Ashok
Ranch Hand

Joined: Apr 05, 2008
Posts: 32
Correct answer is (a) JSP containing the directive will not evaluate EL expressions.
If there's a conflict between the <el-ignored> setting in the DD and isELIgnored attribute of the page directive, the directive takes precedence over DD declaration. Hence even if <el-ignored> is declared as true or false in DD, the jsp containing the directive <%@ page isELIgnored = "true" %> will not evaluate EL expressions


Thanks & Regards,<br />Reesha
V Gala
Ranch Hand

Joined: Aug 06, 2007
Posts: 113
But in mock answer
ans is option b
page 336 of HFS(option e)
thanks
Nitin Vashishtha
Ranch Hand

Joined: Mar 26, 2008
Posts: 31
well..
I answers based on the real question.
The question 6 on page 330 of HFSJ does not have any option as
(a) JSP containing the directive will not evaluate EL expressions.

my complete answer was option D in that question which is:
the jsp containing this directive should not have any expression code evaluated by the jsp container
which basically means same as
JSP containing the directive will not evaluate EL expressions.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Doubt in HFS in chapter 6