Tomcat - aplicación web con Apache tomcat for tome

 
Vista:
sin imagen de perfil
Val: 2
Ha aumentado 1 puesto en Tomcat (en relación al último mes)
Gráfica de Tomcat

aplicación web con Apache tomcat for tome

Publicado por david (1 intervención) el 05/05/2021 04:32:20
apche


hola. no se si estoy usando correctamente las funciones de JSTL.(<c:forEach>)
estoy intentando mostrar en la tabla los datos de Mysql. una manito porfavor Gracias!!!
Codigo:

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
29
30
31
32
33
34
35
36
37
38
39
40
41
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
 
<!DOCTYPE html>
<html>
<div class="table col-sm-8">
        <table claas="table table-hover">
            <thead>
                <tr>
                    <th >ID</th>
                    <th >DNI</th>
                    <th>Name</th>
                    <th>TELF</th>
                    <th>EST</th>
                    <th>USER</th>
                    <th>ACCION</th>
                </tr>
            </thead>
            <tbody>
 
                <c:forEach var="em" items="${empleados}">
                    <tr>
                        <td>${em.getId()}</td>
                        <td>${em.getDni()}</td>
                        <td>${em.getNomb()}</td>
                        <td>${em.getTelf()}</td>
                        <td>${em.getEstad()}</td>
                        <td>${em.getUser()}</td>
                        <td>
                            <a>Update</a>
                            <a>delete</a>
                        </td>
 
                    </tr>
                </c:forEach>
 
 
            </tbody>
        </table>
    </div>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder