I\'ve mapped the Spring MVC dispatcher as a global front controller servlet on /*
.
What you do is add a welcome file in your web.xml
index.html
And then add this to your servlet mappings so that when someone goes to the root of your application, they get sent to index.html internally and then the mapping will internally send them to the servlet you map it to
MainActions
/main
MainActions
/index.html
End result: You visit /Application, but you are presented with /Application/MainActions servlet without disrupting any other root requests.
Get it? So your app still sits at a sub url, but automatically gets presented when the user goes to the root of your site. This allows you to have the /images/bob.img still go to the regular place, but '/' is your app.