I am developing a webapp using Spring MVC 3 and have the DispatcherServlet
catching all requests to \'/\' like so (web.xml):
If I understand your issue correctly, I think I have found a solution to your problem:
I had the same issue where raw output was shown with no css styles, javascripts or jquery files found.
I just added mappings to the "default" servlet. The following was added to the web.xml file:
default
*.css
default
*.js
This should filter out the javascript and css file requests from the DispatcherRequest object.
Again, not sure if this is what you are after, but it worked for me. I think "default" is the name of the default servlet within JBoss. Not too sure what it is for other servers.