jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Filters
Date Thu, 12 Jun 2003 21:24:59 GMT


> -----Original Message-----
> From: Kevin Jones [mailto:kjones@develop.com]
> Sent: 12 June 2003 23:05
> To: cactus-user@jakarta.apache.org
> 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: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message