Better demonstrate the new EL-based "overdraft" authorization rules.

This commit is contained in:
Ben Alex 2008-11-19 09:32:04 +00:00
parent 713bcb4aab
commit 7e562031cc
2 changed files with 14 additions and 2 deletions

View File

@ -13,7 +13,7 @@ public class Account {
private long id = -1;
private String holder;
private double balance;
private double overdraft = 500.00;
private double overdraft = 100.00;
public Account(String holder) {
this.holder = holder;

View File

@ -2,9 +2,16 @@
<h1>Accounts</h1>
<a href="index.jsp">Home3</a><br><br>
<a href="index.jsp">Home</a><br><br>
<table>
<tr>
<td><b>ID</b></td>
<td><b>Holder</b></td>
<td><b>Balance</b></td>
<td><b>Overdraft</b></td>
<td><b>Operations</b></td>
</tr>
<c:forEach var="account" items="${accounts}">
<tr>
<td>
@ -16,6 +23,9 @@
<td>
<c:out value="${account.balance}"/>
</td>
<td>
<c:out value="${account.overdraft}"/>
</td>
<td>
<a href="post.html?id=<c:out value="${account.id}"/>&amount=-20.00">-$20</a>
<a href="post.html?id=<c:out value="${account.id}"/>&amount=-5.00">-$5</a>
@ -25,3 +35,5 @@
</tr>
</c:forEach>
</table>
<p><a href="j_spring_security_logout">Logout</a>