<c:forEach items="${list.productList}" var="dto" varStatus="status">
<tr>
<td></td>
<td></td>
<td></td>
</tr>
.......
.......
</c:forEach>
<spring:hasBindErrors name="productDto">
<c:if test="${errors.hasFieldErrors('productList[ *INDEX* ].count') }">
ERROR MESSAGE
</c:if>
</spring:hasBindErrors>
I would like to print the error message if the errors exist.
However, there already exist double and single quotations and EL tag. So, putting index doesn't work well.
I tried
<c:if test="${errors.hasFieldErrors('productList[ ${status.index} ].count') }">,
<c:if test="${errors.hasFieldErrors('productList[ [status.index] ].count') }">
, but still doesn't work. Please have a look at this. Thank you.