title: Redirecting to the same page using jsp
body: <p><br>
   I have one requirement in which I must create a <strong>log in page</strong> such way that if log in fails, user should be redirected to the same page with 'error message'.<br>
  I am only supposed to use JSP and javascript for validation.<br>
  Please suggest me something over it.<br>
  Thanks.</p>