aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in el-ignored Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Doubt in el-ignored" Watch "Doubt in el-ignored" New topic
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
    
  11

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Doubt in el-ignored
 
Similar Threads
Doubt for a question in Head First ervlets and JSP book
isELIgnored="false"
is it required to set el-ignored to true in DD?
el-ignored doubt
Tag file attribute not evaluated