PART -1 Writing an MVC app
Task-1 : Create one Employee form and save data in static ArrayList.
Development Steps :
Create a dynamic Web Project.
Create register.jsp.
Create a servlet and and call POST.
Create a bean with name Employee.
Set data in empoyee bean from request data.
Create EmployeeService, EmployeeServiceImpl , EmployeeDAO , EmployeeDAOImpl
Create One Virtual DB and put values in arraylist.
Task-2 : Create a link to redirect to login page.
Development Steps :
Create a link "Login" in the previous home page.
Create a login.jsp
After successful creation of EMP , use SendRedirect method to navigate to login.jsp
Task-3 : Create Login bean and a servlet to authenticate.
Task-4 : Redirect to error.jsp if wrong cred.
Task-5 : Set session if right cred and navigate to emphome.jsp with logged in user details.
Last updated
Was this helpful?