I have a page that’s accessible like this
http://site/foo.html
Is it possible to make is available at
http://site/foo
just changing the configuration in web.xml?
I’m migrating an application and the second url is bookmarked and linked in several places.
No. You need to either homegrow a simple
Filterfor this which transparently forwards the incoming requests based on their URI to the desired resources byRequestDispatcher#forward(), or to use a 3rd party one such as Tuckey’s URL rewrite filter which is much similar to the well known Apache HTTPD’smod_rewrite.