I’m looping through a list of items, and I’d like to get a request parameter based on the item’s index. I could easily do it with a scriptlet as done below, but I’d like to use expression language.
<c:forEach var='item' items='${list}' varStatus='count'> <!-- This would work --> <%=request.getParameter('item_' + count.index)%> <!-- I'd like to make this work --> ${param.?????} </c:forEach>
Unfortunately, + doesn’t work for strings like in plain Java, so
doesn’t work ;-(