tags:

views:

12

answers:

0

Hi @all! I would like to delete elements from a list (foreach) with ajax. I have my "foreach" and put links into each row which link to the controller-element-deletion-method.

<c:forEach items="${bean.list}" var="person">
   <tr>
      <td><c:out value="${person.id}"        /></td>
      <td><c:out value="${person.firstName}" /></td>
      <td><c:out value="${person.lastName}"  /></td>
      <td><a href="<c:url value="/personManagement?remove=${person.id}" />">remove</a></td>
   </tr>
</c:forEach>

That's okay so far, but leads to a reload of the page.

Now I am looking for a way to do this job with an ajax-request... Any ideas?

THX!