JSP Table Basic

Descripción

Basic table with headers and looped rows


File Template: ❌


Prefix

jsp:table


Scopes

jsp


Snippet de código

<table border="1">
	<thead>
		<tr>
			<th>${1:Columna 1}</th>
			<th>${2:Columna 2}</th>
			<th>${3:Acciones}</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="${4:item}" items="${5:items}">
			<tr>
				<td>${item.prop1}</td>
				<td>${item.prop2}</td>
				<td>
					<a href="${item.id}">Ver</a> |
					<a href="${item.id}/edit">Editar</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>