Rameez
Rameez

Reputation: 1712

How do i implement Clean URLs in struts

How do i get rid of .do and query string paths in urls of my application? Idea is to make site more SEO and user friendly.

I would like to make this path:

http://something.com/myaction.do?id=1&ground=B

into:

http://something.com/myaction/1/B

Any idea how do i get start? Thanks

Upvotes: 0

Views: 1005

Answers (2)

sana
sana

Reputation: 251

we can achieved this in Struts by modifying Web.xml and struts-config.xml files.

The following link can help you in implementing this:

http://viralpatel.net/blogs/implementing-clean-url-in-struts/

Upvotes: 1

Baggio
Baggio

Reputation: 56

It can be implemented by "URL rewriting", which can make your URL more friendly.

You can take a look at Tuckey urlrewrite, a Java web filter to rewrite URL.

Upvotes: 1

Related Questions