Thanx Ara, your solution is quiet ok if the filter belongs only to one servlet, but what if the filter shall be used for more than one servlet.
Imagine following chain (where Fx is a filter and Sx is a servlet F1 - F3 - S1 F1 - F2 - S2 F4 - F2 - F1 - S3 In that case it doesn't help to have a after-filter. Maybe it would be better to have a filter-mapping tag placed inside of the servlet-file. Another possible solution is to use a template filter-mappings.xml. The problem I face is the more template xml files I use the more hand- made work I have to do. One solution I have found for myself (but not checked at the moment) is to use the template xml-file and use <replacecopy /> task generating the real filter-mapping.xml file. These should simulate automatic generation. Maybe this is the better solution because I think it keeps in mind that setting up the filter-chain is more a deployment task than a development task Helmut > -----Original Message----- > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 5:29 PM > To: Steiner Helmut; [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] Setting a filterchain with > @web:filter-mapping > > > Afaik there's no way to define an ordering. What about two new > parameters: after-filter="another-filter" and before-filter. So if you > want to run a filter after another one just put an after-filter in > filter-mapping. For now just use filter-mappings.xml. > > Ara. > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > > [EMAIL PROTECTED]] On Behalf Of Steiner Helmut > > Sent: Thursday, October 10, 2002 6:33 PM > > To: [EMAIL PROTECTED] > > Subject: [Xdoclet-user] Setting a filterchain with > @web:filter-mapping > > > > Hi all, > > I have searched a little and haven't found an answer for > that problem. > > How can I set the order of the filterchain used in my deployment. > > At the moment my XDoclet produces a filterchain ordered by > name, which > is > > not what I want. > > > > As far as I understand the @web:filter-mapping is set in the > *Filter.java > > file. But I haven't found a way how to decleare in which order the > filters > > shall processed for a specific servlet. > > Is there a way to do this or do I have to the filter-mappings.xml > file? > > > > Thanx in advance > > Helmut > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Xdoclet-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
