Re: Custom Servlet Filter, Where to put filter-mappings

2009-05-14 Thread Erik Hatcher
I like Grant's suggestion as the simplest solution. As for XML merging and XSLT, I really wouldn't want to go that route personally, but one solution that comes close to that is to template web.xml with some substitution tags and use Ant's ability to replace tokens. So we could put in

Re: Custom Servlet Filter, Where to put filter-mappings

2009-05-14 Thread Jacob Singh
I found a very elegant (I think) solution to this. I'll post a patch today or tomorrow. Best, -Jacob On Thu, May 14, 2009 at 6:22 PM, Erik Hatcher e...@ehatchersolutions.com wrote: I like Grant's suggestion as the simplest solution. As for XML merging and XSLT, I really wouldn't want to go

Re: Custom Servlet Filter, Where to put filter-mappings

2009-05-13 Thread Grant Ingersoll
Hmmm, maybe we need to think about someway to hook this into the build process or make it easier to just drop it into the conf or lib dirs. I'm no web.xml expert, but I'm sure you're not the first one to want to do this kind of thing. The easiest way _might_ be to patch build.xml to take

Re: Custom Servlet Filter, Where to put filter-mappings

2009-05-13 Thread Jacob Singh
HI Grant, That's not a bad idea... I could try that. I was also looking at cactus: http://jakarta.apache.org/cactus/integration/ant/index.html It has an ant task to merge XML. Could this be a contrib-crawl add-on? Alternately, do you know of any xslt templates built for this? Could write

Custom Servlet Filter, Where to put filter-mappings

2009-05-12 Thread Jacob Singh
Hi folks, I just wrote a Servlet Filter to handle authentication for our service. Here's what I did: 1. Created a dir in contrib 2. Put my project in there, I took the dataimporthandler build.xml as an example and modified it to suit my needs. Worked great! 3. ant dist now builds my jar and