Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.do in struts urls

 
sandy gupta
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to avoid using .do in struts urls. I know setting up the web.xml servlet mapping will do the trick but i was looking for something cleaner than that so that i do not have to enter every url into the web.xml file.
Help Appreciated.
Thanks
S
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your web.xml file, you need to change your servlet mapping to the approriate url format, for example using *.xxx instead of *.do. Then you just set up your paths in struts-config.xml to reflect the change.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic