Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 29 lines (25 sloc) 0.831 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<div xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:spring="http://www.springframework.org/tags"
xmlns:jsp="http://java.sun.com/JSP/Page">

<jsp:directive.attribute name="collection" type="java.util.Collection" required="true" rtexprvalue="true" description="Message is displayed in case the collection is null"/>
<jsp:directive.attribute name="headerLabels" required="true" rtexprvalue="true" description="Comma separated list"/>

<c:choose>
<c:when test="${empty collection}">
Table is empty.
</c:when>
<c:otherwise>
<table>
<thead>
<tr>
<c:forEach items="${headerLabels}" var="label">
<th> ${label} </th>
</c:forEach>
</tr>
</thead>
<tbody>
<jsp:doBody />
</tbody>
</table>
</c:otherwise>
</c:choose>

</div>
Something went wrong with that request. Please try again.