Repository navigation
Expand file tree
/
Copy pathclassuser8view.jsp
More file actions
56 lines (52 loc) · 1.57 KB
/
Copy pathclassuser8view.jsp
File metadata and controls
56 lines (52 loc) · 1.57 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<%--
Document : classuser8view
Created on : 4 May 2025, 21.32.58
Author : RIANA
--%>
<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Array of Object - Table JSP with MVC</title>
<style>
table {
border-collapse: collapse;
width: 80%;
margin: 20px auto;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
</style>
</head>
<body>
<h1>Array of Object - Table List JSP (MVC Implementation)</h1>
<h2>Daftar User</h2>
<table>
<tr>
<th>No</th>
<th>Nama Depan</th>
<th>Nama Belakang</th>
<th>Jenis Kelamin</th>
</tr>
<c:forEach items="${daftarUser}" var="user" varStatus="status">
<tr>
<td>${status.count}</td>
<td>${user.namaDepan}</td>
<td>${user.namaBelakang}</td>
<td>${user.jenisKelamin()}</td>
</tr>
</c:forEach>
</table>
</body>
</html>