Q:

Iterate in JSP a specified number of times

I need the JSP to create a table, a header, And then cells based on the input form of the index. So it would be as shown below. With each new row being computed from a loop where the limit, input from the user, is the number of rows it will go down.
<column1header><column2header>
 <1>            <1 computed>
 <2>             <2 computed>
 <...>           <............>
<limit>        <limit computed>

A:

You can do it like this:
<table>
    <!-- here should go some titles... -->
    <tr>
        <th>column1header</th>
        <th>column2header</th>
    </tr>
    <c:forEach var="i" begin="0" end="${user.limit}">
       <tr>
           <td>${i}</td>
           <td>${i} computed</td>
       </tr>
    </c:forEach>
</table>

Refer the links below:
How to create table dynamically using count and JSTL ForEach
Dynamic database table display using Jstl

