Resin Gurus -

Please forgive me if this is a frequently asked question, I have only
recently re-subscribed this list and don't see this issue in the

If I have a snippet of JSP code that looks like this:

<a href="<c:url value="someFile.jsp"><c:param name="w"
value="1"/><c:param name="h" value="2"/></c:url>">Click Me!</a>

Resin's JSTL will produce a URL that looks like this:

<a href="someFile.jsp?w=1&h=2">Click Me!</a>

...which, if you ask me, is a perfectly valid URL and is the response
I'd expect. The W3C disagrees.

According to the W3C's validator (and the HTML validator plugin for
FireFox I'm using), the URL should be written like this:

<a href="someFile.jsp?w=1&amp;h=2">Click Me!</a>

Notice how the & has been escaped into &amp;... one could argue that
this is a silly change as "&amp;" contains "&", but that just the way
these things work... *grumble*

Is there a way to make Resin's JSTL implementation spit out &amp;
instead of & on URLs?


- Matt

resin-interest mailing list

Reply via email to