Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我有 spring 应用程序,它在 jsp 的表中显示数据库中的一些值。现在我想添加功能,当用户单击一行以知道他单击了哪一行以删除或编辑行时,这是如何完成的。
当你编译 jsp 页面时,你可以为每一行分配一个 id。将此 id 放入 hidden 并在删除或更新操作时将其发送回。
<tr> <td> <form name="myform" action="..." method="..."> <input type="hidden" name="Language" value="rowNumber"> <input type="submit" value="Delete"> <br><br> </div> <td> </tr>