• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to include multiple struts entries in web.xml

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I need to have two entries of struts in web.xml.
I have given this in web.xml
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-testcient.xml</param-value>
</init-param>
<init-param>
<param-name>config/testclient</param-name>
<param-value>/WEB-INF/struts-testclient.xml</param-value>
</init-param>

I am thinking how will container map when i hit http://localhost:7001/module/url1 --> it has to go to struts-config.xml
and when i hit http://localhost:7001/module/url2 --> it has to go to struts-testclient.xml

Need help!
TIA

Rashmi
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This may help:
http://www.vaannila.com/struts/struts-example/multiple-struts-configuration-files-example-1.html
 
Rashmi Anand
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Sagar,

Thankyou so much for the reference. I was able to have multiple entries of struts in web.xml

Regards,
Rashmi
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If that solved your problem, then welcome
 
reply
    Bookmark Topic Watch Topic
  • New Topic