title: How can I concatenate a string within a loop in JSTL/JSP?
body: <pre><code>&lt;c:forEach items="${myParams.items}" var="currentItem" varStatus="stat"&gt;
    &lt;c:set var="myVar" value="&lt;c:out var="myVar" /&gt;" /&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>I want to concatenate the values of currentItem.myVar and output it at the end of the loop, problem is I can't figure out how to do this...</p>
  
  <p>(Preferably not using Java)</p>