You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Liam Brady <ry...@gmail.com> on 2007/02/07 21:08:38 UTC

Struts taglib HTML 4.01 compliance

I am using Struts taglib version 1.3.5, but I notice for LinkTag, FormTag,
ReWriteTag the parameters in the querystring are being appended with the
ampersand unencoded - this is leading to a validation error for HTML 4.01

for example : I have href"test.jsp?param1=3&param2=4"

Instead I believe it should be href"test.jsp?param1=3&amp;param2=4"

Can somebody tell me if this is correct behaviour? in the taglib
documentation there does not seem to be any parameter for encoding

Re: Struts taglib HTML 4.01 compliance

Posted by Niall Pemberton <ni...@gmail.com>.
RewriteTag - see http://tinyurl.com/yueget
FormTag  - used in a post - why you would need to append query parameters?
LinkTag - should encode the ampersand - can you confirm this and if
its not being encoded please post a <snip> of your JSP showing you
usage.

Niall

On 2/7/07, Liam Brady <ry...@gmail.com> wrote:
> I am using Struts taglib version 1.3.5, but I notice for LinkTag, FormTag,
> ReWriteTag the parameters in the querystring are being appended with the
> ampersand unencoded - this is leading to a validation error for HTML 4.01
>
> for example : I have href"test.jsp?param1=3&param2=4"
>
> Instead I believe it should be href"test.jsp?param1=3&amp;param2=4"
>
> Can somebody tell me if this is correct behaviour? in the taglib
> documentation there does not seem to be any parameter for encoding
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org