----- Original Message ----
From: Trenton D. Adams [EMAIL PROTECTED]

>> Just out of curiosity, is JSTL supposed to do encoding by default?

I don't know that. 

The W3C specs for a link in both HTML and XHTML mention that the ampersand 
should be escaped as in
<a href="http://www.site.com?parameter1=abc&amp;parameter2=xyz";>link text</a>

There's one more tag that uses URLs , it's <c:redirect - this requires an 
*unescaped* ampersand version of <c:url 
That is <c:redirect only works when the URL is 
http://www.site.com?parameter1=abc&parameter2=xyz  and not
http://www.site.com?parameter1=abc&amp;parameter2=xyz

May be if there are languages other than HTML that JSTL works with then, having 
an unescaped ampersand
makes sense if those other languages require an unescaped ampersand. But I 
don't know if there are other languages 
at this point.

Rashmi



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to