Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to include multiple struts entries in web.xml

 
Rashmi Anand
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
 
Rashmi Anand
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that solved your problem, then welcome
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic