You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by vasudevrao gupta <va...@wipro.com> on 2003/12/09 12:52:40 UTC

RE: Multiple Config files

Yes ..u can have multiple config files in your application for each
module ..
you need to define them in web.xml file where you give the
initialization paramter for "config" of your action servlet
seperated by comma.
 <init-param>
      <param-name>config</param-name>
 
<param-value>/WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml</pa
ram-value>
    </init-param>

Cheers
gupta

-----Original Message-----
From: Tiago Henrique Costa Rodrigues Alves
[mailto:tiago.alves@bsb.politec.com.br] 
Sent: 09 December 2003 18:18
To: Struts Users Mailing List (E-mail)
Subject: Multiple Config files


Hi,

I am working in a project with many developers,
sometimes the developers need to change the struts-config.xml file at
the
same time (one developer needs to add a action-form and other developer
needs to add a form-bean or even make some changes...)

How can I add multiple config file support for struts??
OFF-TOPIC : Does anyone know a cvs mailing list ?

Thanks,
Tiago Henrique C. R. Alves


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Multiple Config files

Posted by "Marino A. Jonsson" <ma...@hotmail.com>.
be aware, if you go down this road, that if you specify a tiles-plugin in
both configs - only the plugin in the first config will be initialized.

cheers,
Marin�

"vasudevrao gupta" <va...@wipro.com> wrote in message
news:001701c3be4a$f30c9010$7212a8c0@mdpthm106794...
>
> Yes ..u can have multiple config files in your application for each
> module ..
> you need to define them in web.xml file where you give the
> initialization paramter for "config" of your action servlet
> seperated by comma.
>  <init-param>
>       <param-name>config</param-name>
>
> <param-value>/WEB-INF/struts-config1.xml,/WEB-INF/struts-config2.xml</pa
> ram-value>
>     </init-param>
>
> Cheers
> gupta
>
> -----Original Message-----
> From: Tiago Henrique Costa Rodrigues Alves
> [mailto:tiago.alves@bsb.politec.com.br]
> Sent: 09 December 2003 18:18
> To: Struts Users Mailing List (E-mail)
> Subject: Multiple Config files
>
>
> Hi,
>
> I am working in a project with many developers,
> sometimes the developers need to change the struts-config.xml file at
> the
> same time (one developer needs to add a action-form and other developer
> needs to add a form-bean or even make some changes...)
>
> How can I add multiple config file support for struts??
> OFF-TOPIC : Does anyone know a cvs mailing list ?
>
> Thanks,
> Tiago Henrique C. R. Alves
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments
to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or
Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org