
Can we have more than one struts-config.xml file for a single Struts application?

Hi friends,
Yes it is possiable in case of maintaing seperate module specific information.We can have more than one struts-config.xml for a single Struts application.
Code for web.xml.
<servlet>
<servlet-name>action</servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet </servlet-class>
<init-param>
<param-name>config</param-name>
<param-value> /WEB-INF/struts-config1.xml,
/WEB-INF/struts-config2.xml,
/WEB-INF/struts-config3.xml </param-value>
</init-param>
<servlet>
Thanks.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.