I am using Ajax with JSP.What I am trying to do is when the user enters a name and clicks on the button it goes to a jsp page.
On the jsp page it is checked whether the name is present in the database or not. If it is present then the table is shown with the name and the corresponding password.
Till this it is working fine but when the name is not found in the database i want to redirect to another page. I don't know how to do this.
Please give some code.