I have a simple form which accepts a username and a password. I have to use sendRedirect() method for the page to redirect to one page if log in is valid and to
sendRedirect()
use javascript
$('#inset_form').html(''); document.forms['form'].submit();