首先通过点击index.jsp页面的修改按钮,获取该行的id:↓
其次,跳转到updateBooks.jsp页面进行修改信息,页面代码如下:↓
1 <%@ page import="BookSystem.Other.Books" %><%-- 2 Created by IntelliJ IDEA. 3 User: NFS 4 Date: 2019-7-12 5 Time: 14:31 6 To change this template use File | Settings | File Templates. 7 --%> 8 <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 <html> 10 <head> 11 <title>修改书籍</title> 12 </head> 13 <body> 14 15 <% 16 Books books = (Books) request.getAttribute("update"); 17 18 if (books != null) { 19 %> 20 21 <div> 22 <form method="post" action="update"> 23 <label> 24