In the code below testData is an HashMap. I am trying to bind checkbox with spring:bind tag.
I am getting syntax errors on spring:bind. Could you tell me what is the issue in my code?
<c:forEach items="${testData}" var="test" varStatus="loopStatus">
<spring:bind path="${testData[${loopStatus.index}]}.selected">
<input type="hidden" name="_${status.expression}">
<input type="checkbox" name="${status.expression}" value="true">
<c:if test="${status.value}">checked</c:if>
</spring:bind>
</c:forEach>