Question: Displaying Accounts and Transactions in the Banking System(Java Web App) Based on the code below I am not able to display any accounts on the

Displaying Accounts and Transactions in the Banking System(Java Web App)

Based on the code below I am not able to display any accounts on the displayAccounts.jsp. Consequently, I am not able to display anything on the displayTransactions.jsp. Please let me know if I am missing something based on this.

LoginServlet.java(Imports on top already included)

Displaying Accounts and Transactions in the Banking System(Java Web App) Based on

1. Modify the java server page displayed after a successful login to provide two options. One is to display the users accounts, and the other is an option to logout.

the code below I am not able to display any accounts on

2. Create a servlet to process the option to display accounts. the displayAccounts.jsp. Consequently, I am not able to display anything on the

3. Create a server page to display a list of user accounts. Display the current balance of each account and an option to select each account.

displayTransactions.jsp. Please let me know if I am missing something based on

4. Develop the server page and optional servlet to process displaying transactions. Display the running balance for each transaction.

this. LoginServlet.java(Imports on top already included) 1. Modify the java server page

displayTransactions.jsp(head and closing tags did not fit in the picture)

displayed after a successful login to provide two options. One is to

TransactionDA class

public class TransactionDA { private static ArrayList transactions = new ArrayList(5); public static void add(Transaction trans) { trans.setTransactionID(transactions.size() + 1); transactions.add(trans); } public static ArrayList getAccountTransactions(int accNo){ ArrayList accountTransactions = new ArrayList(5); Transaction trans; for (int i = 0; i

Account DA Class using Array List

public class AccountDA { public static ArrayList accounts = new ArrayList(5); public static void add(Account acc) { accounts.add(acc); } public static ArrayList getUserAccounts(int custID) { Account acc; ArrayList customerAccounts = new ArrayList(5); for(int i = 0; i

Output that I am receiving

display the users accounts, and the other is an option to logout.

2. Create a servlet to process the option to display accounts. 3.

Expected Output

Create a server page to display a list of user accounts. Display

the current balance of each account and an option to select each

Account Number Account Type Current Balance Sele Transactions Dashboard Transaction ID Date Description Amount Current Balance Accounts: Account Transactions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!