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

HFSJ chapter 7 Question No:6

 
Rohit Sajan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFSJ chapter 7 using JSP Exm question 6 :

<%@ page isELIgnored="true" %> What is the effect ?

Option D: The JSP containing this diective should NOT have any Expression Lamguage code evaluated by the JSP container.

Option E: This page directive will only turn off EL evaluation if the DD declares a <el-ignored>true</el-ignore> element with a URL pattern that included this JSP.

Books sayd Option E is correct . what I feel is Option D is correct? Could anyone clarify this?
 
Prabu Bala
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your JSP can have EL but the container consider it like a plain text if <%@ page isELIgnored="true" %>

Look the option D. It says your page should not have EL so its wrong one.
E is the correct one.
 
Rohit Sajan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fine Option D is wrong. Then how is this option E is correct? It says it will turn of EL evaluation ONLY if declared in DD. That's also worng right? Just because of that 'ONLY' in taht statement
 
mahmoud allam
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm also agree with you that's is wrong because of the word ONLY. In the page 320:The page directive takes priority over the DD setting.so it isn't necessary to specify the <el-ignored> in the DD file.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D is correct one
 
warren li
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Official answer is D on my book.
 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Saju Pappachen:
HFSJ chapter 7 using JSP Exm question 6 :

<%@ page isELIgnored="true" %> What is the effect ?

Option D: The JSP containing this diective should NOT have any Expression Lamguage code evaluated by the JSP container.



In "should NOT have any Expression Lamguage code evaluated by the JSP container" if we focus on evaluated by JSP container then D seems right
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic