做了一個(gè)這樣的功能 就是想單獨(dú)修改一行的數(shù)據(jù) 點(diǎn)擊修改后跳轉(zhuǎn)到新界面進(jìn)行修改 ?但是不知道怎么樣才能對(duì)這一行的數(shù)據(jù)進(jìn)行傳值 希望高手指點(diǎn)一下 新人什么都不會(huì)TAT這是部分代碼<form action="DormGetIF" method="post" >?<div style="text-align:center;"><table border="3" width="30%" ?align="center"><tr>? ?<th>學(xué)號(hào)</th>? ?<th>姓名</th>? ?<th>班級(jí)</th>? ?<th>宿舍號(hào)</th>? ?<th>電話</th>? ?<th>操作</th></tr><c:forEach var="row" items="${result.rows}"><tr >? ?<td><c:out value="${row.studentNo}"/></td>? ?<td><c:out value="${row.studentName}"/></td>? ?<td><c:out value="${row.className}"/></td>? ?<td><c:out value="${row.dormNo}"/></td>? ?<td><c:out value="${row.phone}"/></td>? ?? ? <td> ?? <input type="submit" value="修改" name="submit" onclick="window.location.href='dormUpdate.jsp'"/> <input type="submit" value="刪除" name="submit" /> </td> ?</tr></c:forEach> </table> </div> </form>
1 回答

pardon110
TA貢獻(xiàn)1038條經(jīng)驗(yàn) 獲得超227個(gè)贊
傳那行記錄的主鍵到修改頁(yè)面,修改頁(yè)面的數(shù)據(jù)是查詢表渲染的,而不是你想的那樣
點(diǎn)擊展開后面3條
添加回答
舉報(bào)
0/150
提交
取消