• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Qn on IsELIgnored="true" .

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suppose we have like these

<%@ IsELIgnored="true" %>

1. The JSP Containing this directive Should Not have any Expresion
Language code evaluated by the JSP Container.
2. This page directive will only turn off the EL evaluation if DDdeclares
a <el-ignored>true</el-ignored> element with a URL pattern that includes
this JSP element.

According HFSJ, the answer is 2. But my answer is 1 .


Could any help me in this regard.

Waiting for your reply.


Thanks
Praveen
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's worth stating which edition and page of the book the question relates to!

I believe this was an error in early prints of edition 1, and was corrected in later versions.

The second option is AFAIK incorrect.

Rufus.
 
Ranch Hand
Posts: 71
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<%@ IsELIgnored="true" %>

1. The JSP Containing this directive Should Not have any Expresion
Language code evaluated by the JSP Container.
2. This page directive will only turn off the EL evaluation if DDdeclares
a <el-ignored>true</el-ignored> element with a URL pattern that includes
this JSP element.

In the first answer what it says is that the Page should not have , or should not contain EL expressions.which is not right , the JSP page could contain EL like expressions , but that would not be evaluated by the JSP container. If the first answer was "The JSP containing this directive could have any EL Expressions but those would not be evaluated" then we could select the first one as an answer to the question. Hence the answer must be second one. What it says is that setting isELIgnored would turn it off which is correct

Hoe that helps too

Regards,
Ranil
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ranil, I interpret the answers differently to you.

The first statement lacks a comma so I read as synonymous to:

The JSP Container Should Not evaluate any expression language that JSP page containing this directive has.

The second statement I interpret as false as it includes "will only" with respect to the dd directive. My understanding is that regardless of the DD setting the <%@ IsELIgnored="true" %> takes precedence!

Finally I am reasonably sure that in later editions HFSJ changed the answer to this question, though don't have my copy to hand to confirm this!

Rufus.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


there is no such directive...and the attribute name is wrong as well...

it should have been like this:

 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic