Demo Site

Wednesday, April 30, 2008

JSTL String Concatenation

Requires a little backwards thinking, but works well.


<c:set var="myparams">
<c:forEach var="parameter" items="${paramValues}" >
<c:out value="${parameter.key},${fn:join(parameter.value,'|')},"/></c:forEach>
</c:set>

<log:debug message="${myparams}" />

No comments:

Labels

Labels

Labels