Configure the web.xml file:
1. You only need to configure an ACTIONServlet regardless of how much subscriber included in your application. Configuring a plurality of ActionServlet classes to handle different features in applications, it is not necessary because servlet itself supports multithreading. Moreover, the current Struts framework is only allowed to configure an ActionServlet in the application.
2. Configure Welcome File List, see here, why do you want multiple welcome pages? How do this multiple pages call? It turned out to be like this:
3. You cannot configure the servlet mapping in the
Configure multiple application modules:
1. Create a separate Struts profile for each sub-app;
2. Add each sub-application information in the configuration code of the web.xml ActionServlet;
3. Use the
Switch between multiple sub-application modules:
For example, switch from the default module to moduleb:
Http: // localhost: 8080 / tomodule.do? prefix = / moduleb & page = / index.do
Switch from Moduleb to the default module:
HTTP: // localhost: 8080 / Tomodule.do? prefix = & page = / index.do