viewUser.jsp 1 KB
<%@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>