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
<%@page import="org.perpustakaan.models.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>User</title>
</head>
<body>
<section class="user">
<p>Hello <%=session.getAttribute("username") %></p>
<form action="controller.servlet" method="get">
<input type="submit" name="btnControl" value="logout">
</form>
</section>
<% Buku b = Autentifikasi.buku;%>
<section class="data">
<table>
<tr>
<th>ID</th>
<th>Judul</th>
<th>Status</th>
<th>Option</th>
</tr>
<tr>
<td><%= b.getId()%></td>
<td><%= b.getJudul()%></td>
<td><%= b.getStatus()%></td>
<td>
<form action="controller.servlet" method="post">
<input type="submit" name="btnControl" value="Request">
</form>
</td>
</tr>
</table>
</section>
</body>
</html>