• 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

Doubt in el-ignored

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have doubt in isELIgnored attribute when we make it true in the jsp page EL will be ignored by. default it is false so EL will be exceuted.
now we can enable and disable EL through following code in the DD



i tried this and found that even though we have <el-ignored> true </el-ignored> in the DD it still executes the EL in chan.jsp because we have not defined isELIgnored attribute and by default the value is false means EL will be executed.

Now if we want to avoid EL execution then we have to have <el-ignored> true </el-ignored> and isELIgnored = true in both page and in DD only then we EL will be ignored.

because page configuration always override the configuration in the DD. is My understanding correct


Thanks
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi rajaram,

you are correct...
 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can any body throw some more light on this.

Thanks
 
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

i tried this and found that even though we have <el-ignored> true </el-ignored> in the DD it still executes the EL in chan.jsp because we have not defined isELIgnored attribute and by default the value is false means EL will be executed.


No, if you set <el-ignored> to true and you don't use the isELIgnored attribute, jsps matching the url pattern will not evaluate EL. Check that your url pattern is correct, and that you didn't leave the isELIgnored attribute. You may have to clear the container's cache, or to modify your JSP so that it gets retranslated.
 
raja ram
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks yes i checked it and found that when we have <el-ignored>true </el-ignored> in DD and isELIgnored is not defined in the JSP then it will take it from DD. and when we have <el-ignored> and isELIgnored both then isELIgnored will take priority.

Thanks
 
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic