• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ First Edition - Being a JSP - Mock Exam Question 6

 
Sai Surya
Ranch Hand
Posts: 463
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Please correct me I am wrong

Q: Given:
<%@ page isELIgnored="true" %>

What is the effect? (Choose all that apply)

A. Nothing, this page directive is 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.

I answered D. But the correct answer as per book is E.

However, as per answer E, only DD declaration matching this JSP's URL pattern only turns off EL.
As per answer D, I can ignore EL by giving isELIgnore=true in the directivce. (HFSJ Page 320)

Please correct me if I am wrong.
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct answer in my book is D. maybe you have old edition or something, but yes, D is correct answer...
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sai. See error report.
 
Sai Surya
Ranch Hand
Posts: 463
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replies I am going through the error report to correct my version of book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic