Apache Struts Question:
Download Questions PDF

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

Answer:

Yes, we can have more than one struts-config.xml for a single Struts application. They can be configured as follows:

<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-config.xml,
/WEB-INF/struts-admin.xml,
/WEB-INF/struts-config-forms.xml
</param-value>
</init-param>
.....
<servlet>

Download Struts Interview Questions And Answers PDF

Previous QuestionNext Question
What design patterns are used in Struts?What is the difference between session scope and request scope when saving formbean?