tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michel <compu...@videotron.ca>
Subject Re: URL Rewrite
Date Sat, 04 Sep 2010 03:22:55 GMT
----- Original Message ----- 
From: "Ognjen Blagojevic" <ognjen.d.blagojevic@gmail.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Friday, September 03, 2010 6:42 AM
Subject: Re: URL Rewrite


> On 3.9.2010 12:02, michel wrote:
>> I have been using the tuckey urlrewrite with some results, in that if I 
>> want to have an incoming URL coming in as
>> gallery/pic20 gets changed to gallery.jsp?pic=20
>> But the tool bar URL gets displayed as   gallery.jsp?pic=20
>> and I want to display  gallery/pic20
>
> Just use rule, not outbond-rule:
>
> <rule>
>   <from>/gallery/pic([0-9]+)</from>
>   <to>/gallery.jsp?pic=$1</to>
> </rule>

Thanks, and I have it working at times (worked all day on this) but it seems 
unreliable. I am expecting that the very same code would work if I had 
'forward' or 'redirect', but it doesn't.



Michel 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message