This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts doubts

 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


1. Can we change the name of struts.xml file

2. Can we change the name of struts-config.xml file
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried to change it?, have you looked for the changes need to be done in DD for the same ?
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose we can.

But make sure you update the web.xml file too. (struts-config.xml file is mentioned as a <param> parameter to the ActionServlet). So long as you update this location with your change as well, I dont think there should be a problem.
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For example, you want to change xml file name as: sample-config.xml instead of struts-config.xml

So you must edit web.xml file for following way:




 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys, let the OP have some RnD, let him put some thought about how the Struts work. Providing the ready made solution just break the thought process.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic