I want to get the index of forEach loop in integer, I can get it in terms of string i.e
<c:forEach var="row" items="${result.rows}" varStatus="loop">
<c:out value="${loop.index}"/>
</c:forEach>
I want to store the value of index in an integer variable, jsp.