Question: SERVLETS: 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
SERVLETS:
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
