I am writing a method in JSP which dump rows of a table:
<%!
void dumpRows(List<MyClass> obList){
int a = 10;
for(int i = 0; i<100; i++){
%>
//lots of HTML code which uses the variables from the dumpRows method
<td> <%=a*i%> </td>
<%
}//for loop ends
}//method ends
%>
but it is erroring out. There's something wrong with the JSP grammar. Please help me on how can I achieve that