You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by Diego Louzán <dl...@apache.org> on 2006/12/19 18:46:10 UTC

[pluto-1.0.1] Testsuite generates urls incorrectly

In release-1.0.1/testsuite/src/webapp/jsp/introduction.jsp:46:

<TD><A href="<c:out value="${url}"/>">Test</A></TD>

${url} is a variable constructed with a <portlet:actionURL> tag. The
actual call should be:

<TD><A href="<c:out value="${url}" escapeXml="false"/>">Test</A></TD>

The reason is <c:out> by default escapes all entities, which in this
case we don't want because ${url} is an actual url for the portal. I'm
getting some odd errors using wsrp4j with this portlet because of the
entity escaping. Other urls generated by testsuite are not affected by
this error because they don't use JSTL <c:out>.

Regards.
Diego.