Tengo un código en jsp que deberia mostrarme una tabla, pero al ejecutarlo solo me muestra " Nothing found to display. ". Espero sus respuestas Gracias.
Este es el código:
Código:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib uri="http://displaytag.sf.net" prefix="display"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>PRUEBA JSTL Y DISPLAYTAG</title>
</head>
<body>
<c:set var="id" value="1"/>
<c:set var="email" value="prueba@prueba.es"/>
<c:set var="pie" value="1"/>
<display:table name="tablaPrueba" pagesize="10">
<display:column title="ID"> <c:out value="${id}"/> </display:column>
<display:column title="EMAIL"> <c:out value="${email}"/> </display:column>
<display:footer>
<tr>
<td> total: </td>
<td> <c:out value="${pie}" /> </td>
<tr>
</display:footer>
</display:table>
</body>
</html>