struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject [OT] Re: URL parameters separator
Date Fri, 20 Apr 2007 15:16:59 GMT
2007/4/20, Marcello Savino <Marcello.Savino@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


Mime
View raw message