• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query related to Jsp page directive isELIgnored

 
Neal Pressley
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Query related to Jsp page directive isELIgnored

Please refer to HF Servlets and JSP 1.4 , page 336. Question 6. The question is what is the effect of the page directive:
<% page isELIgnored="true" %>

Its says option E is correct which indicates that he 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.

This option does not look correct to me. My understanding is page directive
takes priority over the declaration in DD, so even if the DD does not
declare any thing related to "el-ignored" and page directive says to ignore EL, EL will be
ignored, what do you say?

I know the errata at
http://oreilly.com/catalog/headservletsjsp/errata/


The cofirmed version of errata does not list this issue.

The unconfirmed version of errata says that the above answer is wrong and the correct
answer is
"option D - The JSP containing this directive should not have any EL code
evaluated by the JSP container."

To me this answer also does not look correct as you can have EL Code only thing it will
not be evaluated.

So, per my view none of the options are correct for this.

kindly post your comment and then I will submit an errata based on the discussion.

neal
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To me this answer also does not look correct as you can have EL Code only thing it will not be evaluated.

The answer says "should not", not "must not". So you can have some EL annotations, but they won't be interpreted.
 
Neal Pressley
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it mean option D is correct???

Comments from any other member please, to me both D and E looks wrong.
 
Gopikrishna Kunisetty
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Neal Pressley:
Does it mean option D is correct???

Comments from any other member please, to me both D and E looks wrong.


In my opinion you are right.
check this thread:
http://www.coderanch.com/t/177358/java-Web-Component-SCWCD/certification/el-ignored
 
Gopikrishna Kunisetty
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Neal Pressley:
Does it mean option D is correct???

Comments from any other member please, to me both D and E looks wrong.


In my opinion you are right.
check this thread:
http://www.coderanch.com/t/177358/java-Web-Component-SCWCD/certification/el-ignored
 
Srinivas Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-------------------------------------------------------------------------------------------------------
"option D - The JSP containing this directive should not have any EL code evaluated by the JSP container."
-------------------------------------------------------------------------------------------------------

I got exactly the same doubt as you got when I was going through HFSJ. Thanks for the posting.
I guess the option D is correct. I read the phrase for option D many times to understand it correctly and what I felt was that it didn't say that the JSP should not contain EL code rather it says that JSP code should not have it evaluated by the JSP container. Here "should not" refers to the evaluation by the container but does not mean that "JSP should not contain the EL code". Please let me know if somebody thinks otherwise.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic