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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to