Hey Guys,
I want to redirect a page to another page in JSP after a certain validation has been done using AJAX. If the validation is done it should redirect the user to another page but if validation is not done then it should remain on the same page.
Please tell me how to do this.

Hey Guys,
I want to redirect a page to another page in JSP after a certain validation has been done using AJAX. If the validation is done it should redirect the user to another page but if validation is not done then it should remain on the same page.
Please tell me how to do this.

this is how you redirect a website:

<HEAD>
<SCRIPT language="JavaScript">
<!--
window.location="http://someplace.com";
//-->
</SCRIPT>
</HEAD>

if you want to redirect after it was validate... try using that responseText from the Ajax function,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.