jQuery in Action, 3rd edition
The moose likes Struts and the fly likes URL rewriting in Struts1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "URL rewriting in Struts1" Watch "URL rewriting in Struts1" New topic

URL rewriting in Struts1

June Rajkhowa

Joined: Mar 11, 2011
Posts: 10
Hi folks,

I am developing a web application using Struts1 as web framework. My url pattern in web.xml is:


I want to get rid of .do pattern in urls. So if my url is


i want it to be like http://localhost:38330/MyProject/editFunction/ . How do I acheive this type of url rewriting ?
Thanks for any help
sri ramvaithiyanathan
Ranch Hand

Joined: Nov 20, 2010
Posts: 109
I think you have to use post method.


For java examples,ebooks,interview questions,visit this blog
June Rajkhowa

Joined: Mar 11, 2011
Posts: 10
Have anybody used the Tuckey UrlRewriteFilter ? Please help. This is urgent.
I agree. Here's the link: http://aspose.com/file-tools
subject: URL rewriting in Struts1
It's not a secret anymore!