GeeCON Prague 2014*
The moose likes Struts and the fly likes Can we use two struts-config.xml in one struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can we use two struts-config.xml in one struts application" Watch "Can we use two struts-config.xml in one struts application" New topic
Author

Can we use two struts-config.xml in one struts application

rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
Can we use two struts-config.xml in one struts application?

I need detailed explanation why? when?
sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
Hi,

yes you can define more than one stuts-config.xml files.

You can define struts-modulename-config.xml file for each module,and have your normal struts-config.xml.

both configured in web.xml

You can use SwitchAction to switch among modules..
rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
i didnt understand above information.

Can anybody send detailed explanation?
rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
can anybody clear my doubt please
Rambabu Gonela
Greenhorn

Joined: Jul 31, 2006
Posts: 24
hi
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
Just comma separate the xml files in your web.xml.

 
GeeCON Prague 2014
 
subject: Can we use two struts-config.xml in one struts application