From 7e562031ccc8e5c6919021ce620e834ac60de838 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Wed, 19 Nov 2008 09:32:04 +0000 Subject: [PATCH] Better demonstrate the new EL-based "overdraft" authorization rules. --- .../tutorial/src/main/java/bigbank/Account.java | 2 +- .../src/main/webapp/WEB-INF/jsp/listAccounts.jsp | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/samples/tutorial/src/main/java/bigbank/Account.java b/samples/tutorial/src/main/java/bigbank/Account.java index c892c13a58..df031b5af9 100644 --- a/samples/tutorial/src/main/java/bigbank/Account.java +++ b/samples/tutorial/src/main/java/bigbank/Account.java @@ -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; diff --git a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp index d0eb7e7154..b1deaa337a 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp +++ b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp @@ -2,9 +2,16 @@

Accounts

-Home3

+Home

+ + + + + + + +
IDHolderBalanceOverdraftOperations
@@ -16,6 +23,9 @@ + + &amount=-20.00">-$20 &amount=-5.00">-$5 @@ -25,3 +35,5 @@
+ +

Logout