<c:forEach items="${users}" var="user">
<tr>
<td>
${user.username }
</td>
<td>
${user.account }
</td>
<td>
<a href="" id="update_${user.account}">修改</a>
</td>
<tr>
</c:forEach>
现在我想点击修改到另一个页面,然后填写数据点确定使得数据修改,怎么实现呢?????如果单纯的跳到另一个页面account等数据又确定不了,怎么改呢

解决方案 »

  1.   

    把需要傳到另一個頁面的數據HIDDEN在頁面上就好啦
      

  2.   

    <a href="update.jsp?acct=${user.account}"  target="_blank">修改 </a> 
    or
    <a href="userdetail.do?method=edit&&acct=${user.account}"  target="_blank">修改 </a> 
      

  3.   

    点修改的时候把转到一个action,把你要修改的记录的id传过来,在action中获取然后从数据库中查出到放在request中,然后再转到你要修改的页面。从页面上取出request中的内容....