I have an ArrayList and i am trying to display it in a table
.....
ArrayList rows = ....
.....
<table cellspacing="1" cellpadding="4" border="3">
<tr>
<TH>
Heading1
</TH>
<TH>
Heading2
</TH>
<TH>
Heading3
</TH>
<TH>
Heading4
</TH>
<TH>
Heading5
</TH>
<TH>
Heading6
</TH>
<TH>
Heading7
</TH>
</tr>
<tr>
<% for (int i = 0; i < rows.size(); i++) {
for (int j = 0; j < 7; j++) {
%>
<td>
<center>
<% out.println( ????? ); %>
</center>
</td>
<% } %>
</tr>
<% } %>
</table>
but i am having trouble displaying the correct data.