Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

doubt in HFSJ 1.4 question page no.330 question no.6  RSS feed

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
This is the question of HFSJ1.4 at page no.330 question no.6

Its answer is given E> .I want to know why not D>

question given in book is :
Given:
<%@ page isELIgnored="true" %>
what is the effect ?(choose all that apply)
A. Nothing ,this page directive in 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 directive 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<el-ignored> element with a URL pattern that includes this JSP.



My view is if we dont mention <el-ignored>true/false..... in DD even then it will not evaluate EL expression given in our jsp page if we have above page directive[<%@ page isELIgnored="true" %>]
in our jsp page because page directive takes priority over the DD setting.
Please correct me if i am wrong.
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pradeep,

The option:
D. The JSP containing this directive should Not have any Expression Language code evaluated by the JSP container.

It is saying the JSP having such directive should not have any EL in it that is not correct , JSP page can have EL though it wont be evaluated due to such directive setting.

Thanks
Vishal
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my HFSJ edition (aug 2004) the answer is D!
 
Ranch Hand
Posts: 893
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also would say the answer of this question is D.

Did you check the errata?
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Errata
 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankx to you all Remko Strating ,Christophe Verre .........
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!