Question: 1. Create a index.html to get username and password from the user, then write a servlet to validate the password entered by the user,
1. Create a index.html to get username and password from the user, then write a servlet to validate the password entered by the user, if the user has entered "1234" as password, then he will be forwarded to Welcome Servlet else the user will stay on the index.html page and an error message will be displayed. Files to be created: index.html will have form fields to get user information. Validate.java will validate the data entered by the user. Welcome.java will be the welcome page. web.xml, the deployment descriptor.
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
indexhtml html DOCTYPE html html head title Login Page title head body form actionValidate methodpos... View full answer
Get step-by-step solutions from verified subject matter experts
