From: <bri...@bt...> - 2006-07-21 04:50:07
|
Secateurs, It appears that servlet 2.4 can actually map a filter on to a dispatch (I had it in my mind that this was 2.5): <filter-mapping> <filter-name>Logging Filter</filter-name> <url-pattern>/products/*</url-pattern> <dispatcher>FORWARD</dispatcher> <dispatcher>REQUEST</dispatcher> </filter-mapping> would result in the Logging Filter being invoked by client requests starting / products/... and underneath a request dispatcher forward() call where the request dispatcher has path commencing /products/.... With socket, by omitting the <dispatcher>REQUEST</dispatcher>, this would eliminate the filter being invoked 'on the way in' which we don't really need. <filter-mapping> <filter-name>ViewFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>FORWARD</dispatcher> </filter-mapping> Regards, Brian |