| Author |
Doubt in el-ignored
|
raja ram
Ranch Hand
Joined: Mar 02, 2008
Posts: 169
|
|
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
Joined: Jan 28, 2008
Posts: 5575
|
|
hi rajaram, you are correct...
|
 |
raja ram
Ranch Hand
Joined: Mar 02, 2008
Posts: 169
|
|
Hi, Can any body throw some more light on this. Thanks
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
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.
|
[My Blog]
All roads lead to JavaRanch
|
 |
raja ram
Ranch Hand
Joined: Mar 02, 2008
Posts: 169
|
|
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
|
 |
 |
|
|
subject: Doubt in el-ignored
|
|
|