|
Re: filter order [message #697025 is a reply to message #696857] |
Fri, 15 July 2011 10:40 |
|
Hi,
Snaps is designed to work without affecting the normal flow of an application. So, the normal rules about filter ordering apply, they are given by the Servlet spec and are nothing to do with us. If the Snaps filter can't find a matching Snap then it simply does nothing and calls doFilter() on the filter chain to pass the request on. This means you have two choices and I'm not quite sure on your requirement so I'm not sure which is best.
1. Move the Snaps filter to come after the MethodFilter in your web.xml. This means the Method filter would get to look at requests firsts and the order of the Filter chain depends on the order in which they are defined in the web.xml
2. Put the Snaps filter under a sub-path so that only those requests will result in the Snaps filter going in the filter chain.
Hope that helps, please ask back if not
------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01935 seconds