Every day is Election Day at DZone. Login and vote now.
By bloid
via raibledesigns.com
Published: May 16 2008 / 09:00
Last week, I had a go of making a Spring MVC application use extensionless URLs. I did some googling, found some tips on the Spring Forums and believe I arrived at a solid solution. Using the UrlRewriteFilter (version 3), I was able to create a rule that looks for any URLs without an extension. If it finds one, it appends the extension and forwards to the controllers. This rule is as follows (where *.html is my servlet-mapping for DispatcherServlet in web.xml)
SaveShareSend
Tags: frameworks, java
Add your comment