• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
pradeep singh
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.
 
Vishal Chugh
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
 
Jan Sterk
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!
 
Remko Strating
Ranch Hand
Posts: 893
  • 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?
 
Christophe Verré
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 .........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic