RE: Having more than one struts-config.xml

2003-11-07 Thread Parthasarathy Kesavaraj
Thanks Marino and Manish.

> --
> From: Marino A. Jonsson[SMTP:[EMAIL PROTECTED]
> Reply To: Struts Users Mailing List
> Sent: Friday, November 07, 2003 8:32 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Having more than one struts-config.xml
> 
> 
> "Manish Singla" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Example in web.xml
> >
> >   config
> >   struts-default.xml,struts-config1.xml
> >
> > Now, above may cause naming collision.
> > Thus, name actions may be like mod1_ActionsOfModule1.do
> 
> I like to use two configs, so that the second one "extends" the first one,
> and "overloads" the actions and other elements with the same name.
> Be aware though that if you're using Tiles and specify a Tiles Plugin in
> both config files, the one in struts-config1.xml will not be initialized,
> so
> if you are using a different tiles config for the second struts config it
> will be a problem.
> 
> cheers,
> MarinĂ³
> 
> 
> 
> 
> -
> 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]



Re: Having more than one struts-config.xml

2003-11-07 Thread Marino A. Jonsson

"Manish Singla" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Example in web.xml
>
>   config
>   struts-default.xml,struts-config1.xml
>
> Now, above may cause naming collision.
> Thus, name actions may be like mod1_ActionsOfModule1.do

I like to use two configs, so that the second one "extends" the first one,
and "overloads" the actions and other elements with the same name.
Be aware though that if you're using Tiles and specify a Tiles Plugin in
both config files, the one in struts-config1.xml will not be initialized, so
if you are using a different tiles config for the second struts config it
will be a problem.

cheers,
MarinĂ³




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



Re: Having more than one struts-config.xml

2003-11-07 Thread Manish Singla
Example in web.xml

  config
  struts-default.xml,struts-config1.xml

Now, above may cause naming collision.
Thus, name actions may be like mod1_ActionsOfModule1.do

Other way is struts modules...



Parthasarathy Kesavaraj wrote:

> Is it possible to have more than one struts-config.xml..If that so how to
> give entry for second struts-config.xml(Say struts-config1.xml).
> Thanks in advance..
> Regards
> Partha
>
> -
> 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]



Re: Having more than one struts-config.xml

2003-11-07 Thread Adrien GEYMOND
Yes, you can have many struts-config.xml. But each one refers to a
sub-application.

for example :
in the web.xml, you have following code


config
WEB-INF/struts-config.xml



config/struts2
/WEB-INF/struts-config2.xml



And then, you access to the entries of the second struts-config like that :
http://server:port/application/struts2/*.do

I hope it helps you ...

 Adrien
- Original Message - 
From: "Parthasarathy Kesavaraj" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 8:34 AM
Subject: Having more than one struts-config.xml


> Is it possible to have more than one struts-config.xml..If that so how to
> give entry for second struts-config.xml(Say struts-config1.xml).
> Thanks in advance..
> Regards
> Partha
>
>
> -
> 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]



RE: Having more than one struts-config.xml

2003-11-07 Thread Ashutosh Satyam
You can specify it like this in your web descriptor file.


action

  org.apache.struts.action.ActionServlet


  config
  /WEB-INF/config/struts-config.xml


  config/app2
  /WEB-INF/config/ struts-config1.xml

2
  

Regards,
 Ashutosh


-Original Message-
From: Parthasarathy Kesavaraj [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 1:04 PM
To: '[EMAIL PROTECTED]'
Subject: Having more than one struts-config.xml

Is it possible to have more than one struts-config.xml..If that so how to
give entry for second struts-config.xml(Say struts-config1.xml).
Thanks in advance..
Regards
Partha


-
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]