How to rewrite URL in Tomcat 6

Enrique picture Enrique · Oct 14, 2009 · Viewed 25k times · Source

I'll build a web application and I want to use url rewriting. In apache this is done with mod_rewrite. But how can I rewrite urls with Tomcat 6?

I want to use Struts 2 framework.

Answer

Jonathan Feinberg picture Jonathan Feinberg · Oct 14, 2009

I've used UrlRewriteFilter as a critical component of a couple of my tomcat-based apps, and have been totally happy with it.