This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You could, but you would have to map a different extension to each controller servlet. This is generally discouraged as it makes the app a mess to try and follow.
Instead, look into the modules feature of Struts. You can create separate modules that each have their own struts config file and correspond to separate paths in the URL, such as /ContextRoot/module1/ /ContextRoot/module2/ etc.
Because each module is independent, you can specify and maintain all the configuration properties separately as you currently are without resorting to a kludge.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Joined: May 26, 2004
David: I appreciate your comprehensive reply. By looking at your point I assumed that theoritically an J2EE application can have many Controller Servlets configured though it is not recomended to do so.