Request dispatcher forwarding request

For login example we are using user mail id and password. if both are correct then we are forwaring to home.jsp page if any on of mail id or password is in correct then it will forwarded back to index.jsp page with appropriate error message.

1258_project_expo

index.jsp

Login.java

home.jsp

Result

1258_first

If user id and/or password is incorrect then it will be redirected to index.jsp page with appropriate error message.

1258_second

Using correct mailid and password adminuser@gmail.com and 123456

1258_third