in my scenario i have a code like below:
<c:forEach items="${dbEntries}" var="c" varStatus="loop">
<tr>
<%
int i = 0;
System.out.println(i);
%>
<td rowspan="1">${c.getRh_name()}</td>
<td rowspan="1">${c.getIpm_name()}</td>`
</tr>
</c:forEach>
now i want to access the variable from html. like below
<h1>${i}</h1>
but its not displaying.can anyone help??