Better demonstrate the new EL-based "overdraft" authorization rules.
This commit is contained in:
parent
713bcb4aab
commit
7e562031cc
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue