• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in el-ignored

 
raja ram
Ranch Hand
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi rajaram,

you are correct...
 
raja ram
Ranch Hand
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any body throw some more light on this.

Thanks
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic