Re: Tomcat URL Rewrite. Help with configuration.

2009-03-11 Thread Ben Hu
Rodrigo, What is the error message in English? And i think this one is just an example config file coming with urlrewriter. If you do not need it, you can just delete it. The rule means that requests to /test/status/ will be redirected to /rewrite-status the url wi

Re: Question about writing a servlet filter in Tomcat 5.5.x

2009-03-09 Thread Ben Hu
CompressFilter example. Not sure if there is anyone can share some experiences on this. -Ben On Mon, Mar 9, 2009 at 2:49 PM, Gregor Schneider wrote: > Ben, > > On Mon, Mar 9, 2009 at 7:15 PM, Ben Hu wrote: > > I am not sure whether or > > not Tomcat has its own way to implement Ser

Re: Question about writing a servlet filter in Tomcat 5.5.x

2009-03-09 Thread Ben Hu
Thanks a lot for the example, Gregor. The filter I am working on needs to change the content of response, so I think I need to write customized ServletResponseWrapper and ServletOutputStream. And this is where I encountered the problem, the customized filter I wrote does not behavior as it says on

Question about writing a servlet filter in Tomcat 5.5.x

2009-03-09 Thread Ben Hu
Hi, All, I am trying to write a servlet filter to change the response content on Tomcat 5.5.x. I am a newbie to servlet filter, so I searched online for couple examples to start. For example, I found this one: http://download.oracle.com/docs/cd/A97688_16/generic.903/a97680/filters.htm. This example