0
How do I generate a Jasperreport by clicking on an item in a table? My question more precisely is that when clicking on the table row the method would be get (requestMapping), then as from there how to generate the report ?
Follow the table view
</div>
<div class="card">
<table class="table table-responsive">
<thead>
<tr>
<th class="text-dark font-weight-bold">#</th>
<th class="text-dark font-weight-bold">Nome</th>
<th class="text-dark font-weight-bold">Apelido</th>
<th class="text-dark font-weight-bold">Nome Responsavel</th>
<th class="text-dark font-weight-bold">Usuario</th>
</tr>
</thead>
<tbody>
<tr th:each="a : ${alunosInscricao}">
<td th:text="${a.id}">1</td>
<td th:text="${a.nome}"></td>
<td th:text="${a.apelido}"></td>
<td th:text="${a.nome_responsavel}"></td>
<td th:text="${a.user}"></td>
<td class="left"><a class="btn btn-success btn-sm"
th:href="@{/alunosInscricao/gerarRelatorio/{codigo}(codigo=${aluno.id})}">Imprimir
</a> <a class="btn btn-link btn-warning btn-sm"
th:href="@{/alunosInscricao/{codigo}(codigo=${aluno.id})}">Editar
</a></td>
</tr>
<tr>
<td colspan="36" th:if="${#lists.isEmpty(alunosInscricao)}">Nenhum
aluno foi encontrado</td>
</tr>
</tbody>
</table>
</div>