Spring MVC Table selected row

Posted by ich-bin-drin on Stack Overflow See other posts from Stack Overflow or by ich-bin-drin
Published on 2010-05-05T12:08:01Z Indexed on 2010/05/05 12:28 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

Hi,

in a Spring MVC 2.5 application i'm using a spring <form:form> component and in this form a table with c:forEach is rendered.

In each row a submit button is placed in. If i start a submit by clicking a button i would like to knwo, which button has processed the submit.

<form:form commandName="formObject">
<table class="data-table" cellpadding="1" cellspacing="1" border="0">
  <thead>
   <tr>
   </tr>
  </thead>
  <c:forEach items="${list}" var="document" varStatus="row">
    <tr>
      <td>  
        <input type="submit"  value="${document.title}"/>
      <td>
    </tr>
  </c:forEach>
</table>
</form:form>

THX.

© Stack Overflow or respective owner

Related posts about spring

Related posts about mvc