• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF Incorrect Mock Answer

 
Roger Turnau
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was considering sending this gotcha to wickedlysmart.com, but since so many people on these boards are using the HF book to study for the 1.4 test I decided put it here.

The question is on page 336, question 6: What's the effect of <%@ page isELIgnored="true" %>

The answer in the book is: "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."

That contradicts what the JSP 2.0 spec says in section 3.3.2. There it says explicitly that once the isELIgnored page directive shows up on the JSP, the container shouldn't even care what's in the DD. The page directive wins.

I don't know if this one's already been caught. I'm posting it here because I haven't seen anyone else post on this question. (Oh, OK -- and because I'm a know-it-all.)

Another odd wrinkle about EL and its interaction with the DD that the book isn't precise about is how and why EL is turned on by default. In the spec, it says that EL is turned on by default only if the web.xml uses version 2.4 or greater. Otherwise EL is ignored.

BTW, I'm loving the book. Great work, guys.

Roger Turnau
SCJP 1.4
SCWCP 1.4 (Preparing)
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roger you are right.

Check this thread as well
http://www.coderanch.com/t/168153/java-Web-Component-SCWCD/certification/HF-Chaper-JSP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic