I have one requirement in which I must create a log in page such way that if log in fails, user should be redirected to the same page with ‘error message’.
I am only supposed to use JSP and javascript for validation.
Please suggest me something over it.
Thanks.
I have one requirement in which I must create a log in page such
Share
You can not check for login in same jsp page so you need a processing page between home page and login page.
Make a processing page may be named as
authentication.jspnow check for login in this page and if login gets successful redirect to home page and if login page fails redirect back to login page. you can useresponse.redirector<c:redirect>to redirect to login page.