• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

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

 
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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic