Struts Config File

Can we config more than one struts-config.xml files in 2EE? If Yes, How?

Questions by ammineni.vasu

Showing Answers 1 - 3 of 3 Answers

Yes. We can configure more than one struts- config.xml file.
But we have to mention the path of all struts-config files in the web.xml file.

Just like this...

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/struts-default.xml</param-value>
</init-param>
<init-param>
<param-name>config/module1</param-name>
<param-value>/WEB-INF/conf/struts-module1.xml</param-value>

</init-param>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions