File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .do in struts urls