Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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