This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in HFS in chapter 6
 
Similar Threads
HFSJ mock exam - Chapter 7
doubt on isELIgnored
Question on HF Page #336
HFSJ - Error in Exercise?
isELIgnored and el-ignored