It is possible to create multiple struts configuration files for the same module?
I have tried to create configuration file for different application/module and include it in main file struts.xml in Struts 2 but can anyone tell me how to create multiple configuration file for same application?
If you are talking about struts.xml file so you can not create such multiple file.
The core configuration file for the framework is the default (struts.xml) file
and should reside on the classpath of the webapp (generally /WEB-INF/classes).
though we have the option of breaking up a large struts.xml file into smaller pieces.
You can use
<include>elements in yourstruts.xmlinterchangeably,for example you can create configuration file for each module and can includes them in your struts.xml file likeEach included file must be in the same format as
struts.xml, including theDOCTYPE. The include files can be placed anywhere on the classpath and should be referred to by that path by the “file” attribute.