On Oct 4, 2007, at 7:59 AM, Matt White wrote:
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
documentation.
If I have a snippet of JSP code that looks like this:
a href=c:url value=someFile.jspc:param name=w
value=1/c:param name=h value=2//c:urlClick Me!/a
I've added a bug report as http://bugs.caucho.com/view.php?id=2042,
but I'll need to check the spec.
You might need to use
c:url value=... var=foo.../c:url
c:out value=${foo} escape=true/.
I'm not sure why c:url doesn't have an escape attribute to match c:out.
-- Scott
Resin's JSTL will produce a URL that looks like this:
a href=someFile.jsp?w=1h=2Click 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=1amp;h=2Click 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?
Thanks!
- Matt
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest