Home>
<table>
<%
    for (int i = 0;i<for for a number of .length of bean;i ++)
    {
%>
 <tr>
  <th colspan = "2"><button type = "button" data-toggle = "collapse" data-target = "# collapse<% = i%>" aria-expanded = "false" aria-controls = "collapse<% = i%>">
   <% = Display each item name or something using for statement from bean%>
  </button></th>
 </tr>
 " data-parent = "# accordion">
    
 <tr>
  <th>Data 1</th>
  <th>Data 2</th>
 </tr>
<%
        for (int j = 0;j<bean for .length is turned;j ++)
        {
%>
 <tr>
  <td>
   <% = display name or something using bean%>
  </td>
  <td>
   <% = Same as above%>
  </td>
  <td><input type = "button" value = "edit" onClick = "DispPerson (To the screen for editing information of this person with javascript)">
 </td>
 </tr>



<%
        }
    }
%>

</table>

If i click the