Question: Create a Java Web Project called TOBA and in it create the following HTML pages for our application. 10 pts index.html : This will be

Create a Java Web Project called TOBA and in it create the following HTML pages for our application. 10 pts

index.html : This will be the homepage of the application. If youre aesthetically inclined, by all means make it pretty. At the very least, the homepage should have the name of the banking application and a navigation.

Login.html: This page should contain a form with the following input elements and a Login Button. This page should also have a link to a New Customer Sign Up page, see item c.

Username

Password

New_customer.jsp: This page will allow the user to register for online banking services. It should have a form with a submit button that collects the following information.

FirstName

LastName

Phone

Address

City

State

Zipcode

Email

Success.html: This page should just display a message that the account has been successfully created.

Account_activity.html: This page will be used to display the customer account information. Just add a header for now.

Transaction.html: This page will allow a user to post a transaction. Just add a header for now.

Login_failure.html: Displays a message that the login was incorrect.

Error_404.jsp: Displays 404 error code.

Error_java.jsp: Displays a message that java has thrown an exception.

Create the following Servlets: 10 pts

LoginServlet Code the servlet to retrieve the username and password from the form we added to login.html. Have the servlet check that the username is equal to HYPERLINK "mailto:jsmith@toba.com" jsmith@toba.com and the password is equal to letmein. Make sure you use these values or I cant test your work. If the username and password match, the servlet to forward the request to the account_activity.html page. If it is incorrect, it should forward the request to the login_failure.html page.

NewCustomerServlet Code the servlet to retrieve the new customer form data and just redirect to the success.html page.

TransactionServlet Just create an empty servlet for now.

Server Side Validation Code the NewCustomerServlet to validate the user has entered in values for all the form fields. If not, assign a message variable such as Please fill out all the form fields and display the message on the new_customer.jsp page. 10 pts

Web XML - Configure the web.xml to map all your servlets. 10 pts

Error Handling Add the following: 10 pts

XML tags that provide error-handling for an HTTP 404 status code

XML tags that provide error-handling for all Java exceptions

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!