I am developing a webapp using Spring MVC 3 and have the DispatcherServlet
catching all requests to \'/\' like so (web.xml):
I found a way around it using tuckey's urlrewritefilter. Please feel free to give a better answer if you have one!
In web.xml:
UrlRewriteFilter
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
UrlRewriteFilter
/*
app
org.springframework.web.servlet.DispatcherServlet
app
/app/*
In urlrewrite.xml:
/
/app/
^([^\.]+)$
/app/$1
/app/**
/$1
This means that any uri with a '.' in it (like style.css for example) won't be re-written.