title: JSP redirects to another page instead of next page
body: <p>After inserting value in database then redirect to another jsp page?but actually without inserting value in database it redirect to next jsp page
      int i= ps.executeUpdate();</p>
  
  <pre><code>if(i!=0) {     
      session.setAttribute("userid", user);
      response.sendRedirect("admin.jsp");
      out.print("&lt;font size='6',color='aqua'&gt;Welcome Admin page&lt;/font&gt;");
  } else {
      response.sendRedirect("adminlogin.jsp");
  }
  </code></pre>