Niall Pemberton wrote:
Since Struts 1.1 the ampersand spearator in query parameters has been
encoded as "&" (rather than just "&") in the LinkTag.
Does anyone know why we do this? The only thing I could find is the the
following:
http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.2
If the ampersands were not escaped, the result wouldn't be valid HTML. I
would guess that's why it was changed to the current behaviour.
Are there any other reasons? Also the TagUtils.computeURLWithCharEncoding()
method that does this doesn't do it for redirects - why is that?
A client-side redirect is sent as an HTTP header, not a complete HTML
document, so escaping isn't required in that case.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]