This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
does WIcketFilter process subclasses of HttpServlet ?
All about action servlet
window.location with servlet bean
how can i change the suffix of struts
Tomcat container not working