Oct 30th, 2005, 09:01 AM
Problem with URL resolution in action-servlet.xml
I need a hint:
in my action-servlet.xml I have a SimpleUrlHandlerMapping which maps a subclass of AbstractController to /foo/* and /foo/**/*, the controller then parses the path and returns the appropriate ModelAndView. Now the problem is, this only works for files which are mapped in web.xml to the action servlet, e.g.:
Any hints are greatly appreciated!
Thanks in advance,
Oct 30th, 2005, 10:15 AM
You need to map * in the web.xml for all requests to be even passed to Spring. By mapping just *.html to the Spring servlet, the servlet container will not even pass requests that don't in .html to Spring.