• 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:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
Ranch Hand
Posts: 463
Eclipse IDE Tomcat Server Java
  • 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.
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • 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...
 
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sai. See error report.
 
Sai Surya
Ranch Hand
Posts: 463
Eclipse IDE Tomcat Server Java
  • 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.
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic