I have a project that compiles to foo.war. When I drop it into Tomcat, the index page is accessible at localhost:8080/foo/ with various servlets and assets as subdirectories of /foo/
What I want is to turn the /foo/ part into /foo/bar/ without having to modify every single servlet and move all of my static assets into a /bar/ folder. Is this possible?
I can control the web.xml file but not the final Tomcat server that it will be hosted on. I think there's a way to do this in web.xml but I can't seem to figure out how.