I have a table and I want the lines to be numbered.
In my jsp, I have something like that:
<%! int i = 0; %> 
 <c:forEach items="${clients}" var="client">  
    <tr>  
       <td align="center"><%= ++i %></td>  
       <td><c:out value="${client.nomPrenom}"/></td>  
....
My problem is when I refresh the page, variable i is not reset to 0. It continues to ++
What do I do wrong?
 
     
     
    