Hi

A better way is to use struts modules. Every Module has its own struts-configuration. If you use more than one struts configuration such as described below, you may have problems with duplicate identifiers, becaus struts builds one configuration out of all files. This problems you don't have using modules. Modules acts as a namespace in this case.

-Manfred

--

===========================================
Dipl.-Inf. Manfred Wolff
Software Engineer
-------------------------------------------
http://www.manfred-wolff.de
http://www.struts-it.org
-------------------------------------------


Folashade Adeyosoye wrote:

Yes, in your web.xml


Change this...

 <servlet>
   <servlet-name>AppName</servlet-name>
   <servlet-class>com.path.to.the.ActionServlet</servlet-class>
   <init-param>
     <param-name>config</param-name>
     <param-value>/WEB-INF/struts-config.xml</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
 </servlet>

To


<servlet> <servlet-name> AppName </servlet-name> <servlet-class>com.path.to.the.ActionServlet</servlet-class> <init-param> <param-name>config</param-name>

<param-value>/WEB-INF/struts-config.xml,/WEB-INF/the-employee-config.xml,/WE
B-INF/the-admin-config.xml,/WEB-INF/the-client-config.xml,/WEB-INF/the-billi
ng-config.xml,/WEB-INF/the-report-config.xml,/WEB-INF/the-patient-config.xml
</param-value>
   </init-param>
   <load-on-startup>1</load-on-startup>
 </servlet>


-----Original Message-----
From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Sunday, April 10, 2005 11:04 PM
To: 'Struts Users Mailing List'
Subject: Multiple struts-config.xml


Hi

I have an application and I need to create many web flows. If I use struts
to model the web flows, is it possible to use many struts-config.xml instead
of one?

Regards,

Néstor Boscán


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to