0
在Spring MVC 2.5應用程序中,我使用彈簧<form:form>
組件,並以此形式呈現包含c:forEach
的表。Spring MVC Table選擇行
在每一行中都有一個提交按鈕。如果我通過點擊按鈕開始提交,我想知道哪個按鈕已經處理了提交。
<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。
這不是很好,但它的工作原理。 – 2010-05-07 10:10:54
仍然比使用JavaScript hacks更好(這通常是建議的方式) – Daff 2010-05-07 12:04:50