As requested, here is one way to add data-label
attributes to your <td>
elements using plain old core JSTL.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
</tr>
</thead>
<tbody>
<c:forEach var="person" items="people">
<tr>
<td data-label="First name"><c:out value="person.firstName" /></td>
<td data-label="Last name"><c:out value="person.lastName" /></td>
</tr>
</c:forEach>
</tbody>
</table>
Note: this does not use the displaytable library.