This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ".do in struts urls" Watch ".do in struts urls" New topic
Author

.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.
Thanks
S


Adios
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
 
Consider Paul's rocket mass heater.
 
subject: .do in struts urls