• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q(6) of chapter-7 - HFSJ - isELIgnored

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Question is like this.
-----------------
Given:
<%@ page isELIgnored="true" %>
What is effect?(choose all that apply)

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 we application's JSP
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 the DD declares a <el-ignored>true</el-ignored> elemnt with a URL pattern that includes this JSP.

According to me answer is (D).
but book is saying its (E). I am not getting why???

Thanks
Imran
 
akshay pandit
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just started with Chapter-7, but as per my understanding the answer you have chosen is correct.. It should be D, as the isELIgnored attribute should turn of EL capabilities of that particular JSP, not of whole application. But yes i guess if EL has to be ignored for whole application, then it should only be allowed through DD entry as mentioned.

Not very sure !!! I would request all the Web Guru's to clarify...
 
Arafat Nalkhande
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys I am thrilled to know that not one but 2 persons are on the same wavelength as me.
Well this sunday even I happned to complete chapter 7 and had exactly the same query as to why the answer is E and not D (what i think should be).
I have a SCWCD vooucher that expires 31st Aug, so planning to give exam anytime before that.
Wish you guys all the very best for SCWCD.

Ok coming back to actual thread topic...Well my guess, its a printing mistake... bartenders, sheriffs, authors javagurus corrcet me if I am wrong.
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes even I had answered what you did (D).

I think its a printing mistake in book.

Regards,
Shivani.
 
Arafat Nalkhande
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So probably its a safe bet to assume that its a printing mistake.
Moving forward onto chapter 8 I have a doubt.
If you refer page 356 question 3 : The correct answer as per the book (page 416) is "This works ine and prints EVAN".
But my thinking says that it will fail at runtime exactly the same way as question 1 will fail at runtime.

Any inputs...
 
Manish Agarwal
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct Arafat.
In my opinion also this shud fail.
 
Amit Tayal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, both the options will not compile.
This has been mentioned in the errata of HFSJ.

Amit
 
Arafat Nalkhande
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Amit.
I should have looked at the ERRATA.

For everybobody else's referance the URL for HFSJ Errata is

HFSJ Errata
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic