1 <c:forEach var="user" items="${users }"> 2 <form action="user_update_Users"> 3 <tr> 4 <td> <input name = "user.id" value="${user['id'] }" readonly="readonly"></td> 5 <td> <input name = "user.userId" value="${user.userId }" readonly="readonly"></td> 6 <td> <input name="user.userName" value="${user.userName }"></td> 7 <td> <input name="user.password" value="${user.password }"></td> 8 <td> <input name="user.userType" value="${user.userType }"></td> 9 <td> <input type="submit" value="修改"></td> 10 </tr> 11 </form> 12 </c:forEach>
form一定要放在forEach里面,表示要提交的表单。