You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ignacio de Córdoba <ic...@skios.es> on 2009/02/09 20:21:22 UTC
How to generate a URL with s:url encoded in UTF-8
Hi there,
I am trying to generate a URL with s:url and s:param so that parameters are
encoded in URL. Special characters are not processed ok. (The struts action
works fine as I have posted that same URL data with a form encoded in UTF-8
and they are decoded fine in my java code)
I've tried doing <s:param><s:property ... escape="true"/><s:param> but no
luck. Chars are escaped but not encoded UTF-8.
Any ideas if this is possible?
Thanks,
Ignacio
--
View this message in context: http://www.nabble.com/How-to-generate-a-URL-with-s%3Aurl-encoded-in-UTF-8-tp21919013p21919013.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to generate a URL with s:url encoded in UTF-8
Posted by Manos Batsis <ma...@geekologue.com>.
Ignacio de Córdoba wrote:
> Hi there,
> I am trying to generate a URL with s:url and s:param so that parameters are
> encoded in URL. Special characters are not processed ok. (The struts action
> works fine as I have posted that same URL data with a form encoded in UTF-8
> and they are decoded fine in my java code)
> I've tried doing <s:param><s:property ... escape="true"/><s:param> but no
> luck. Chars are escaped but not encoded UTF-8.
> Any ideas if this is possible?
Appservers usually need some config to process UTF-8 URLs (you need that
when using GET, e.g. links), see for example
http://confluence.atlassian.com/display/DOC/Application+Server+URL+encoding
Cheers,
Manos
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org