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
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
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
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
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
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
---
6 matches
Mail list logo