title: invalid login id or password alert
body: <p>I am new to java. Here I am making my first web project, i have login.jsp and servlet(doPost) for authentication and then redirects to userhome if authenticated. But if not authenticated then a message is going like:</p>
  
  <pre><code>response.sendRedirect("login.jsp?msg=Invalid user id and password");
  </code></pre>
  
  <p>But this message is being displayed in browser header like :</p>
  
  <pre><code>login.jsp?msg=Invalid user id and password
  </code></pre>
  
  <p>which i do not want. In browser no message should be displayed and should only display the url of login page(login.jsp) when user is not authenticated that is:</p>
  
  <pre><code>login.jsp
  </code></pre>
  
  <p>Any help?</p>