• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ - page 330, Question no:6

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ page isELIgnored="true"%>
What is the effect?

The answer given in the book is E, which says: 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.

But, I feel that, if there is a choice between the page directive and DD, the page directive takes over. Hence here, D should be very appropriate which says, "The JSP containing this directive should NOT have any expression language code evaluated by the JSP container".

Any inputs in this regard Friends!!
Srini
 
Esam Ahmed
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Srinivasan,
Yes, you are right that D should be the answer.
As a matter of fact, D is the correct answer per the Errata found at(page 336 - question 6:
http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed

You might want to consult the errata if you need clarification on certain facts...

Regards,
Esam
SCJP 1.4, SCWCD 1.4 (SCBCD - in progress, real slow)
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, Esam's right. Check the Errata. My choice was D. and Errata proved that. The answer at the back of end of chapter, was wrong.

if you study HFSJ, you should get Errata printed to help you go thru HFSJ....

hehe....all the best.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic