|
@@ -1,13 +1,14 @@
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
|
+<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
|
|
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
|
|
<html>
|
|
<html>
|
|
- <head>
|
|
|
|
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
|
|
- <link rel="stylesheet" href="<c:url value='/static/css/tutorial.css'/>" type="text/css" />
|
|
|
|
- <title>Accounts</title>
|
|
|
|
- </head>
|
|
|
|
|
|
+<head>
|
|
|
|
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
|
|
+ <link rel="stylesheet" href="<c:url value='/static/css/tutorial.css'/>" type="text/css" />
|
|
|
|
+ <title>Accounts</title>
|
|
|
|
+</head>
|
|
<body>
|
|
<body>
|
|
<div id="content">
|
|
<div id="content">
|
|
|
|
|
|
@@ -32,22 +33,26 @@ Anyone can view this page, but posting to an Account requires login and must be
|
|
<td><b>Operations</b></td>
|
|
<td><b>Operations</b></td>
|
|
</tr>
|
|
</tr>
|
|
<c:forEach var="account" items="${accounts}">
|
|
<c:forEach var="account" items="${accounts}">
|
|
- <tr>
|
|
|
|
- <td>${account.id}</td>
|
|
|
|
- <td>${account.holder}</td>
|
|
|
|
- <td>${account.balance}</td>
|
|
|
|
- <td>${account.overdraft}</td>
|
|
|
|
- <td>
|
|
|
|
- <a href="post.html?id=${account.id}&amount=-20.00">-$20</a>
|
|
|
|
- <a href="post.html?id=${account.id}&amount=-5.00">-$5</a>
|
|
|
|
- <a href="post.html?id=${account.id}&amount=5.00">+$5</a>
|
|
|
|
- <a href="post.html?id=${account.id}&amount=20.00">+$20</a>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
|
|
+<tr>
|
|
|
|
+<td>${account.id}</td>
|
|
|
|
+<td>${account.holder}</td>
|
|
|
|
+<td>${account.balance}</td>
|
|
|
|
+<td>${account.overdraft}</td>
|
|
|
|
+<td>
|
|
|
|
+ <a href="post.html?id=${account.id}&amount=-20.00">-$20</a>
|
|
|
|
+ <a href="post.html?id=${account.id}&amount=-5.00">-$5</a>
|
|
|
|
+ <a href="post.html?id=${account.id}&amount=5.00">+$5</a>
|
|
|
|
+ <a href="post.html?id=${account.id}&amount=20.00">+$20</a>
|
|
|
|
+</td>
|
|
|
|
+</tr>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</table>
|
|
</table>
|
|
|
|
|
|
-<p><a href="logout">Logout</a></p>
|
|
|
|
|
|
+<p>
|
|
|
|
+<form action="logout" method="post">
|
|
|
|
+ <sec:csrfInput />
|
|
|
|
+ <input type="submit" value="Logout"/>
|
|
|
|
+</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|