<html> <head> <title> JSP Example </title> </head> <body <table border=2> <% for ( int i = 0; i < n; i++ ) { %> <tr> <td>Number</td> <td><%= i+1 %></td> </tr> <% } %> </table> </body> </html>