<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!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>Show All Books</title>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>ISBN</th>
                <th>Judul</th>
                <th>Pengarang</th>
                <th>Penerbit</th>
                <th>Tahun</th>
                <th>Harga</th>
                <th colspan="2">Action</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach items="${bukus}" var="buku">
                <tr>
                	<td><c:out value="${buku.isbn}" /></td>
                    <td><c:out value="${buku.judul}" /></td>
                    <td><c:out value="${buku.pengarang}" /></td>
                    <td><c:out value="${buku.penerbit}" /></td>
                    <td><c:out value="${buku.tahun}" /></td>
                    <td><c:out value="${buku.harga}" /></td>
                    <td><a
                        href="BukuController.do?action=edit&isbn=<c:out value="${buku.isbn }"/>">Update</a></td>
                    <td><a
                        href="BukuController.do?action=delete&isbn=<c:out value="${buku.isbn }"/>">Delete</a></td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
    <p>
        <a href="BukuController.do?action=insert">Add Buku</a>
    </p>
</body>
</html>