There was a written test. Db has User Id, Username and Password. Write a program to take input from user check and display success or error.
Use Object Oriented concept and design.
Assumptions can be made
Struts Framework was asked to be used.
Show a login Page and verify if a given user is a valid user.
Show a welcome message if the user is valid else display an error message.
Base your solution on the above guidelines.