Gostaria de uma ajuda tenho essa tabela que monta um extrato bancario e gostaria de saber como “pegar” o valor da variavel que incrementa o forEach para adicionar na coluna ITEM ficando 1,2,3… etc
[code]<%@page import=“model.Extrato”%>
<%@ page language=“java” contentType=“text/html; charset=ISO-8859-1” pageEncoding=“ISO-8859-1”%>
<%@ taglib uri=“http://java.sun.com/jsp/jstl/core” prefix=“c”%>
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title>Extrato</title>
<meta name=“viewport” content=“width=device-width, initial-scale=1”>
<link rel=“stylesheet” href=“http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css” />
<script src=“http://code.jquery.com/jquery-1.9.1.min.js”></script>
<script src=“http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js”></script>
</head>
<body>
<div data-role=“page” id=“extrato”>
<div data-role=“header”></div>
<div data-role=“content”>
<jsp:useBean id="extrato" class="model.Extrato"></jsp:useBean>
<c:set var="e" value="${extrato.geraExtrato(cliente.conta)}"></c:set>
<table data-role="table" id="tabelaExtrato" data-mode="columntoggle" class="ui-body-d ui-shadow table-stripe ui-responsive" data-column-btn-theme="b" data-column-btn-text="Exibir..." data-column-popup-theme="a">
<thead>
<tr class="ui-bar-d">
<th data-priority="1">Item</th>
<th data-priority="2">Data</th>
<th data-priority="3">Valor</th>
</tr>
</thead>
<tbody>
<c:forEach var="ext" items="${e}">
<tr>
<th>1</th>
<td>${ext.getData() }</td>
<td>R$: ${ext.getValor()}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div data-role="footer"> </div>
</div>
</body>
</html>[/code]