Row id’s in html table

I have a jsp that displays a table of xml files and I want do display its content when I click on certain file in a table, but I dont know how to remember which row ID i clicked on so I know which file to display. This code displays table of files.

<table class="zakladni" border="1">
     <s:useActionBean beanclass="" var="actionBean"/>
     <c:forEach items="${actionBean.getWARs()}" var="WAR">
              <td><c:out value="${WAR.getFileName()}"/></td>
              <td><c:out value="${WAR.getTimestamp()} "/></td>

Source: jsp

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.