In my page, for first time I will show only 10 records out of 36, if viewer click next button it shows next 10 records out of 36.
My problem is table row count on table footer
I don't know how to count table row on changing (meaning when we click next button it should say "showing 10 to 20 of 36 records".
My output:

Expected outputs:

after clicking next button:

Sample code:
<tfoot>
<c:choose>
<c:when test="${empty model}">
<tr>
<td align="left" colspan="11" style="color: orange; font-size: 12pt;">No records
found!</td>
</tr>
</c:when>
<c:otherwise>
<tr>
<td align="left" colspan="11" style="color: orange; font-size: 10pt;">Showing 1 to
${stlRec} of ${ttlRec} entries
</tr>
</c:otherwise>
</c:choose>
</tfoot>