File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we use two struts-config.xml in one struts application
 
Similar Threads
reg: datasource - very very urgent
can there be two struts-config.xml files in one application?
struts1
Struts-config.xml
Difference between application and message-resources