On Aug 7, 4:01 am, "surajthee...@gmail.com" <surajthee...@gmail.com>
wrote:
> hi frns,
> i just want to know that whether i can use more than one struts confic
> in an application(web or enterprise).
> and if possible tell me how?
> the Member of Group
> Suraj
Yes, you can.
http://struts.apache.org/1.x/userGuide/configuration.html (Section
5.4.1)
Here is how it looks like:
<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</param-value>
</init-param>
<init-param>
<param-name>module1</param-name>
<param-value>/WEB-INF/module1-config.xml</param-value>
</init-param>
<init-param>
<param-name>module2</param-name>
<param-value>/WEB-INF/module2-config.xml</param-value>
</init-param>
</servlet>
-cheers,
Manish