> -----Original Message----- > From: Kevin Jones [mailto:[EMAIL PROTECTED] > Sent: 12 June 2003 23:05 > To: [EMAIL PROTECTED] > Subject: Filters > > Hi, > > I'm using Cactus to test a filter. > The filter is mapped to /* > I'm calling the filter inside a FilterTestCase like this > > MyFilter filter = new MyFilter(); > filter.init(filterConfig); > filter.doFilter(...); > > > I'm seeing the doFilter called twice, I assume this is because the > filter is mapped to /* and the cactus request is firing the filter. This > must be a common problem and I was wondering what if anything is the > work around?
Hmm... Why do you have a filter mapping for the test? Is it because you also want to test the mapping? My recommendation would be to remove your filter mapping and only keep the Cactus FilterRedirector one. -Vincent > > Thanks > > Kevin Jones > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
