velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sliver" <sli...@gmx.at>
Subject Encode url
Date Thu, 18 Aug 2005 12:51:39 GMT
Hi,

how do I encode a string in velocity?

I tried this

#set( $encodedStr = $link.encodeURL($string))

but it doesn't encode characters like '?' and '&'. I need them to put a URL
into a parameter of a request string.

e.g.
http://foo.bar.org/some.action?backurl=another.action?foo=bar&bar=foo

where backurl should be another.action?foo=bar&bar=foo

TIA
Stefan



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message