PDA

View Full Version : Question about MultiActionController & ControllerClassNameHandlerMapping


DanielD
Apr 24th, 2007, 06:02 PM
Why does ControllerClassNameHandlerMapping have to map the URLs for a MultiActionController with a /* on the end?

http://www.springframework.org/docs/api/org/springframework/web/servlet/mvc/support/ControllerClassNameHandlerMapping.html

Mainly, it causes this URL to work:

http://localhost/myapp/controller/

But not this URL:

http://localhost/myapp/controller

I've created the ability to execute a default method if one is not specified and I'd like it to work with or without the trailing slash. Any ideas? Thanks!