title: delete row corresponding to button clicked in jsp
body: <pre><code>  userdetails.jsp
  
    &lt;tr&gt;
  
   &lt;td&gt;
   &lt;%
    out.println(rs.getString(1));
    name=rs.getString(1);
    out.print("&lt;input type='hidden' name='user' value='"+name+"'");
    %&gt;
  
  &lt;/td&gt;
  
  
  &lt;td&gt;
  &lt;%out.println(rs.getString(2));
  
      %&gt;
  &lt;/td&gt;
      &lt;td&gt;
            &lt;%out.println(rs.getString(3));
  
      %&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;%out.println(rs.getString(4));
  
      %&gt;
      &lt;/td&gt;
  
      &lt;td&gt;
          &lt;input type="Submit" name="delete_user" value="Delete"/&gt;
      &lt;/td&gt;
  
      &lt;/tr&gt;
  </code></pre>
  
  <p>when i click the delete button only first row is getting deleted and not the row corresponding to which button is clicked</p>