Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

page isELIgnored="true"

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for replying.

Me too didn't find it in errata.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic