blob: c04305d47e150f7a15b17a515a599c94d67707cf [file] [log] [blame]
<%@ page
import="org.springframework.web.servlet.support.BindStatus" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags"
prefix="spring" %>
<html>
<head>
<title>Book list</title>
</head>
<body>
<h1>Book list</h1>
<form method="POST">
<input type="submit" name="_eventId_addBook" value="Add book ..." id="addbook">
<input type="submit" name="_eventId_endNoView" value="End (expect exception)">
<input type="submit" name="_eventId_endView" value="End">
</form>
</form>
<table>
<thead>
<tr>
<td>Title</td>
<td>Author</td>
<td>&nbsp;</td>
</tr>
</thead>
<tbody>
<c:forEach items="${books}" var="book">
<tr>
<td><c:out value="${book.title}"/></td>
<td><c:out value="${book.author.name}"/></td>
<td>
<form method="POST">
<input type="hidden" name="id"
value="<c:out value="${book.id}"/>">
<input type="submit"
name="_eventId_detail"
value="Details"
id="detail<c:out value="${book.id}"/>">
</form>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</body>
</html>