The web.xml
file controls which context file DispatcherServlet is using. If you configure web.xml
to have a DispatcherServlet
with name em
, then by default it uses em-servlet.xml
to load the web context.
Your question is a bit confusing as to what you would actually like to do - do you want all "versions" to be available in the same instance of the application?
If so, the method you describe sounds unorthodox for how to present multiple languages / globalizing your application. Traditionally you would just have a single instance of the application and all the controllers/instances, and then handle translating user-visible messages at the display level. Spring has excellent support for this.
If your goal is to have a single instance of the application serve requests for all these languages/locales, then it sounds like you could do away with a lot of this redundancy.