Re: [S2] encode attribute of : correct encoding?

2009-03-21 Thread Pierre Thibaudeau
I still haven't found an answer to my puzzlement about encoding non-ASCII characters.  I've come to the conclusion that this isn't specifically a Struts2 problem (so, I'll probably post on stackoverflow for enlightenment), but for completeness's sake, here are a few observations that may puzzle (or

[S2] encode attribute of : correct encoding?

2009-03-18 Thread Pierre Thibaudeau
I fail to understand how to use the "encode" attribute of the . Here's an example that puzzles me... Let's try, alternately, to set "encode" to "true" and "false". Here goes:    Élizabeth yields:     /myAction?entityName=%C3%83%C2%89lizabeth while    Élizabeth yields     /myAction?entityNa

Re: [S2] encode

2008-02-13 Thread Laurie Harper
That's the expected behaviour; s:url's encode attribute specifies that each parameter should be encoded, not that the entire result should be. If it gave what you're expecting, it wouldn't be giving back a valid URL. What you need to do is store the url in a variable (using var="url"...) and th

Re: [S2] encode

2008-02-13 Thread Vinny
I am having an issue with s:url as well I set s:url's encode="true" I want to Data.asp?id=1&subId=2 to look like: Data%2Easp%3Fid%3D1%26subId%3D2 What I get instead is Data.asp?id=1&subId=2 Is this the expected behavior? Don't know if this is the problem the original poster had. Thanks On Jan

Re: [S2] encode

2008-01-13 Thread Laurie Harper
GF wrote: Hi all I'm using Struts 2.0.6 If I try to set "encode" to true and I pass in the URL get some bad characters.. such as '<', '>' it doesn't encode them when it generates the URL with Is this a bug? Has been fixed in recent version? Thanks s:url sets encode to true by default, but the

[S2] encode

2008-01-11 Thread GF
Hi all I'm using Struts 2.0.6 If I try to set "encode" to true and I pass in the URL get some bad characters.. such as '<', '>' it doesn't encode them when it generates the URL with Is this a bug? Has been fixed in recent version? Thanks ---