I've now created an updated version of the context filter from an earlier blog post. This is now available as source code from my public subversion repository, and as a binary from my public maven repository.
The package name has changed slightly, so the web.xml configuration would now read:
<filter> <filter-name>contextFilter</filter-name> <filter-class>com.fatmoggy.ctx.ContextFilter</filter-class> </filter> <filter-mapping> <filter-name>contextFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
The Maven dependency information required to import this is:
<dependency> <groupId>com.fatmoggy.ctx</groupId> <artifactId>context-filter</artifactId> <version>0.3</version> </dependency>
My public Maven repository is online at http://geeklondon.com/repository/. The subversion path to the filter source code is svn://fatmoggy.com/context-filter/