HTML Client

After implementing the server-side transactions, you can create the JSPs that can invoke transactions and display the response page.

The client browser shows HTML pages that have been rendered by JSPs. The users's actions are sent to the server as HTTP requests. Then the response from the server is displayed in the browser.

After the first request to the server, any subsequent requests from the client include the fields that are returned from the server in the previous responses. Therefore, the fields that are required in a request for executing operations depend upon what has been sent previously. An HTML page on the client workstation contains what the server has built as a response to a previous request.

The HTML page rendered by a JSP can contain simple data fields or complex data such as indexed collections. Other than application fields, there are some mandatory hidden fields that need to be present in any HTML request. They must have been returned to the client in the previous HTML response from the server.

The following JSPs are the main JSPs that were implemented for this sample:

Table 1. Sample JSPs
Page Description
SignIn The first page displayed after establishing a connection to the server
Menu The main page displayed after the sign-in
AccountInquiry A read-only page displaying the signed-in users's accounts information
Transfer The form to perform a transfer operation
TransferComplete A page informing that the transfer operation was successfully performed
Payment The form to perform a payment operation
PaymentComplete A page informing the users that the payment operation was successfully performed
CreditCardsWellcome The first form of the credit card application process, asking the users for some existing account
RequestDataPage The form asking the users for some financial information
CreditCardsPage The form asking the users to choose one of the available credit cards in the bank
CreditCardConfirmationPage A page asking the users to confirm their decision on applying for the selected credit card
CreditCardProcessedPage A page informing the users that the process was successfully performed
CancelConfirmation A page that prompts the users to confirm the cancellation of the application when the users is providing financial information