Or, use this:
http://tuckey.org/urlrewrite/
You setup an xml file like so:|
|<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite
PUBLIC "-//tuckey.org//DTD UrlRewrite 2.5//EN"|
|"http://tuckey.org/res/dtds/urlrewrite2.5.dtd">|
|<urlrewrite>
<rule>
<from>^/financial/summary.vm?tab=(.*)&mes=(.*)$</from>
<to
type="redirect">/rgcip/ViewProjectFinancialSummary.vm?tabName=$1&searchMesage=$2</to>
</rule>|
</urlrewrite>
Works great for me. Although, I may be way off the mark for what
you are actually trying to do.
Charlie
|
Sreeni Gali said the following on 10/12/2005 3:01 PM:
Hi guys,
How to do url rewriting in Velocity.
In my velocity page there is an anchor link to another velocity page.
example has given below
http://localhost:8080/rgcip/ViewProjectFinancialSummary.vm?tabName=Projects&searchMessage=Project%20Financial&name=Financial&usDotNo1=US123456
i don't want to expose this name and value pair in the browser . How to do
URL rewriting in velocity so then i can use that to rewrite my url so the
person con't understand the url.
is there any suggestion to do this?
Thanks advance.
Regards
Gali
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]