aspose file tools*
The moose likes Struts and the fly likes can there be two struts-config.xml files in one application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can there be two struts-config.xml files in one application?" Watch "can there be two struts-config.xml files in one application?" New topic
Author

can there be two struts-config.xml files in one application?

isha krishnan
Ranch Hand

Joined: Nov 10, 2008
Posts: 50
hi all,
can there be two struts-config.xml files in one application?
eg. struts-config.xml and struts-config1.xml.

in web.xml,we write:

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config1.xml</param-value>
</init-param>

is it possible?

i have tried..but the application simply moves to error page.Why can't it read the file ...config1.xml?
pooja par
Ranch Hand

Joined: Feb 14, 2011
Posts: 31
yes we can have 2 struts-config.xml files

In web.xml

Mahendra Suda
Greenhorn

Joined: Apr 22, 2011
Posts: 18
Yes, you can configure multiple configuration files in struts, go here for more http://www.java-connect.com/struts/configure-multiple-struts-configuration-file-in-struts.html


http://www.java-connect.com
isha krishnan
Ranch Hand

Joined: Nov 10, 2008
Posts: 50
Thanks buddies
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can there be two struts-config.xml files in one application?