• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Query related to Jsp page directive isELIgnored

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
https://coderanch.com/t/177358/java-Web-Component-SCWCD/certification/el-ignored
 
Gopikrishna Kunisetty
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
https://coderanch.com/t/177358/java-Web-Component-SCWCD/certification/el-ignored
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It's just a flesh wound! Or a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic