Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in HFS in chapter 6

 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Reesha Ashok
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But in mock answer
ans is option b
page 336 of HFS(option e)
thanks
 
Nitin Vashishtha
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic