forked from mishrkavita/Online-Banking-System-using-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccountOverview.jsp
More file actions
61 lines (51 loc) · 1.84 KB
/
AccountOverview.jsp
File metadata and controls
61 lines (51 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--
/******************************************************************************
* Program Author: Kavita for CSCI 6810 Java and the Internet *
* Date: November, 2018 *
*******************************************************************************/
-->
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="Com.Gandhi.*;" %>
<%
String UName = new String("");
UName = request.getParameter( "UserID" );
//out.println("Your username is " + UName);
String Name = new String("");
Name = request.getParameter("CustomerName");
//out.println("Your customername is " + Name);
CheckingAccount ca;
SavingsAccount sa;
ca = new CheckingAccount();
ca.getAccountInfo(UName);
sa = new SavingsAccount();
sa.getAccountInfo(UName);
%>
<HTML><HEAD></HEAD>
<BODY>
<FORM NAME="AccountOverviewForm" ACTION="" METHOD ="POST">
<INPUT TYPE='hidden' NAME='UserID' VALUE='<%=request.getParameter("UserID")%>'>
<TABLE cellPadding=3 ALIGN='center'>
<TR bgcolor='#F1F1FD'>
<td> Account Type</td>
<td> Account Number</td>
<td> Balance</td>
</TR>
<TR bgcolor='#F1F1FD'>
<td><%= "Checking Account" %></td>
<td><%= ca.getAccountNumber().substring(ca.getAccountNumber().length()-4) %></td>
<td><%= ca.getBalanceValue() %></td>
</TR>
<TR bgcolor='#F1F1FD'>
<td><%= "Saving Account" %></td>
<td><%= sa.getSavingsAccountNumber().substring(sa.getSavingsAccountNumber().length()-4) %></td>
<td><%= sa.getBalanceValue() %></td>
</TR>
</TABLE><BR>
<CENTER><INPUT TYPE="SUBMIT" NAME='submitBNTN' VALUE='Refresh'></CENTER><BR>
</FORM>
</BODY>
</HTML>
<SCRIPT LANGUAGE='JavaScript'>
</SCRIPT>