How to delete an elements from a list in spring mvc
<p>In workers.jsp I have:</p>

<pre><code>    ....
    &lt;form action="/workers" id="personForm" method="post" &gt;

    &lt;c:forEach items="${page.content}" var="row" varStatus="status"&gt;
    &lt;tr&gt;
    &lt;td&gt;&lt;input type="checkbox"/&gt;&lt;/td&gt;
    &lt;td&gt;${row.name}&lt;/td&gt;
                     ...
     &lt;td&gt;
    &lt;input type='image' src='/pages/img/del.png' /&gt;
    &lt;input type='hidden' name="removeid" value='${row.id}'/&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/c:forEach&gt;
    &lt;/form&gt;
</code></pre>

<p>When I click on input, ${row.id} goes to:</p>

<pre><code>   @RequestMapping(value = "/workers", method = RequestMethod.POST)
    public ModelAndView getAllByPage(@ModelAttribute("removeid") Long removeid, Model uiModel, Pageable pageable) {

    if(removeid!=null) {
       userService.remove(removeid);
    }

   ...

   } 
</code></pre>

<p>But removeid in this case is always the first, that was added to the jsp page. 
Besides that, how to get the array of ids, using jsp to remove many items?</p>

<p>Help me, please. </p>