You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Petrelli <an...@gmail.com> on 2007/04/20 17:16:59 UTC

[OT] Re: URL parameters separator

2007/4/20, Marcello Savino <Ma...@aldebra.com>:
> The code works good. But the generated url are in this form:
>
> http://localhost:8080/myApp/myAction.do?id=161298&year=2005
>
> Instead of
>
> http://localhost:8080/myApp/myAction.do?id=161298&amp;year=2005
>
> As required by the DTD declared (xhtml 1.0 strict)

The URL itself is OK, but it needs to be encoded.

>
> Does anybody have some idea to get the right url parameter separator
> (&->&amp;) ?

Try:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/escapeXml.fn.html

HTH
Antonio

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