• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
isha krishnan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes we can have 2 struts-config.xml files

In web.xml

 
Mahendra Suda
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
isha krishnan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks buddies
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic