File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes URLRewriting using urlrewrite.xml  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "URLRewriting using urlrewrite.xml  " Watch "URLRewriting using urlrewrite.xml  " New topic

URLRewriting using urlrewrite.xml

Apurva Gaonkar

Joined: Feb 07, 2011
Posts: 7

I want ti use feature of urlrewriting in my project.
I have added jar urlrewrite-3.2.0.jar in my WEB-INF/lib directory. and also added WEB-INF/conf/urlrewrite.xml file .

I have set rules as follows <urlrewrite>


<to >/package/$1</to>

my output shloud be ------ > / type

and in my JSP file I have link
<a href="" target="_blank">

I even triend doing <a href=<%response.encodeURL("")%> target="_blank"> still the it doesnot work ...

please help me ..I am going wrong some where ?
Rob Spoor

Joined: Oct 27, 2005
Posts: 19552

Welcome to the Ranch!

I'll move this thread to our Tomcat forum, since I think that's a better place for it.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: URLRewriting using urlrewrite.xml
Similar Threads
Urlrewrite logic
Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC
URL rewrite errors
Missing CharacterEncodingFilter, UrlRewriteFilter?
htaccess and mod_rewrite issue