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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started