permaculture playing cards
The moose likes Struts and the fly likes .do in struts urls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ".do in struts urls" Watch ".do in struts urls" New topic

.do in struts urls

sandy gupta
Ranch Hand

Joined: Jan 30, 2001
Posts: 228
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.

Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
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.

Matthew Phillips
I agree. Here's the link:
subject: .do in struts urls
It's not a secret anymore!