| 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
Greenhorn
Joined: Mar 26, 2008
Posts: 29
|
|
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%
|
 |
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
Greenhorn
Joined: Mar 26, 2008
Posts: 29
|
|
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.
|
 |
 |
|
|
subject: Doubt in HFS in chapter 6
|
|
|