Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is it required to set el-ignored to true in DD?

 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
in any jsp page if we use
<%@ page isELIgnored="true" %>
Then it is required that for above jsp page el-ignored should be true in DD.
i.e
<el-ignored>true</el-ignored>
That means if i will not set el-ignored in DD for above page then
EL will be processed.

Please correct me if i am wrong.
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Directive attributes have precedence over DD tags. so, if you have attribute isELIignored="true" in your jsp, any EL expressions in your jsp will be treated as html text.
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If we use <%@ page isELIgnored="true" %>, Then EL will not be evaluated. Container will not look into DD what we have specified there, If it finds this directive in page.

i.e. this page directive take precedence over DD declarations.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please consider this question In HFS&JSP pno-:336
Qno 6
<%@ page isELIgnored="true" %>
Ans-: This page directive will only turn off EL evaluation if the DD declares <el-ignored>true</el-ignored> element with a URL pattern that includes this page.

What does above specifies?

Thanks
 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to https://coderanch.com/t/173446/java-Web-Component-SCWCD/certification/page-isELIgnored-true
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That means ans for Above question is D.
Thanks
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
refer this thread
 
Ranch Hand
Posts: 105
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you think about it...

The DD setting (el-ignored) is an application setting that can be taken into consideration when processing JSP files for a certain url-pattern (e.g. *.jsp). The page directive attribute isELIgnored can overrule this DD setting for a single page.

If for example you have the following jsp-config configuration in your DD



And you change the DD el-ignored and isELIgnored values accordingly:


Another table, telling the same story



Hope that helps
[ November 15, 2006: Message edited by: Johan Pelgrim ]
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, that's crystal clear for me now.
Makes sense.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a nutshell, Johan Pelgrim's 2nd table can be put as -

1.unspecified + unspecified = false (EL evalated) if >= 2.4 web.xml
true (EL ignored) if 2.3 <= web.xml
2.boolean + unspecified = boolean
3.boolean + boolean = precedence order

confirmed ???
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic