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

page isELIgnored="true"

 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a doubt regards the answer of Q.6 page 336 HFSJ. Question says:

Given:

<%@ page isELIgnored="true" %>

What is the effect? (Choose all that apply.)

A. Nothing, this page directive is NOT defined.

B. The directive turns off the evaluation of Expression Language code by the JSP container in all of the web application's JSPs.

C The JSP containing this directive should be treated by the JSP container as a well formed XML file.

D. The JSP containing this directice should NOT have any Expression Language code evaluated by the JSP container.
E. This page directive will only turn off EL evaluation if the DD declares a <el-ignored>true</elignored> element with a URL pattern that includes this Jsp.

Ans is E.

However my understanding is the directvie will also turn off EL evaluation if the DD does not declare a <el-ignored>true</elignored> element with a URL pattern that includes this Jsp. Then why it says 'only' ?

Please correct me if I m wrong.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer is D.
I think it was in the errata, but I can't find it anymore
 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying.

Me too didn't find it in errata.
 
Mv Caraiman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Errata is here :
http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed
But it doesn't look to contain something related to that question.
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that question seems to have a strange logic in it.
I did not find anything about the errata regarding this.
But a link about this subject:
http://www.javaranch.com

Table JSP.31 from the JSP 2.0 specs clearly shows that if the page directive isELIgnored is set to true, then whatever the JSP configuration is in the DD, meaning the <el-ignored> tag element could be set to true or false, the Expression Language will always be ignored.

Answer E is in contradiction with that conclusion.
Do you agree ?

It makes sense imho since if it was the case that would create some unecessary dependance between the tag in the JSP and the DD.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic