title: How to perform UPDATE and DELETE operation simultaneously on JSP page ?
body: <p>I want to perform multiple operation Like DELETE and UPDATE to do so I Need to send Data to Controller,
  where I Am doing Mistake??</p>
  
  <p>Following is my JSP page</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;%@taglib  uri="http://www.springframework.org/tags/form" prefix="form" %&gt;
  &lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  &lt;jsp:useBean id="TimeDetailBean" class="com.logic.bean.userBean"   scope="application" /&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Manage Results&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;h1&gt;The Employee_Info Results &lt;/h1&gt;
  
  &lt;table&gt;
  &lt;tr&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Last name&lt;/th&gt;&lt;th&gt;Password&lt;/th&gt;&lt;/tr&gt;
  &lt;c:forEach items="${rows}" var="row"&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;input type="text" name="name" value=${row.NAME}&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="lastname" value=${row.LASTNAME}&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="password" value=${row.PASSWORD}&gt;&lt;/td&gt;
  &lt;td&gt;&lt;a href="update.do"&gt;UPDATE&lt;/a&gt;&lt;/td&gt;
  &lt;td&gt;&lt;a href="delete.do"&gt;DELETE&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;/c:forEach&gt;
  &lt;/table&gt;
  
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and below is the controller where I want The value of name ,lastname and password</p>
  
  <pre><code>@RequestMapping("/delete")
      public ModelAndView Delete(HttpServletRequest request, HttpServletResponse response)
      {
          System.out.println("Delete Controller Executed");
          userBean ub= new userBean();
          Dao d= new Dao();
          String name=request.getParameter("name");
          String lastname=request.getParameter("lastname");
  
          System.out.println("Name catch"+name);
          System.out.println("Lastname catch"+lastname);
  
  
  
          return new ModelAndView("deleteSuccess");
  
      }//delete ends
  </code></pre>
  
  <p>Thanks in advance. . </p>