This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 19725

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