Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HFSJ mock exam - Chapter 7

 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have seen the below mock exam question at the end of chapter 7(Using JSP) in HFSJ book (Q.no.6 & P.no.330).

<%@ page isELIgnored="true" %>

What is the effect?

A.Nothing,this page directive is not defined

B.The directive turns off the evaluation of EL 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 EL code evaluated by the JSP container

E.This page directive will only turn off EL evaluation if DD declares <el-ignored>true</el-ignored> element with a URL pattern that includes this JSP


Answer given : E

But i feel that option D is correct.can any1 clarify on this?.

Thanks in advance..

Regards,
Priya.
 
bengt hammarlund
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are right! You should read the errata for this book, this is one of the (many) errors corrected there. The URL is easy to found using google!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!