This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL rewriting in Struts1

 
June Rajkhowa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

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

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

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

http://localhost:38330/MyProject/editFunction.do?function=1

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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you have to use post method.

Regards,
Sriram.V
 
June Rajkhowa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have anybody used the Tuckey UrlRewriteFilter ? Please help. This is urgent.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic