这是一个图书馆系统
源代码在线查看: deletebook.jsp~7~
Delete Book
.style3 {font-size: 24px}
.style4 {font-size: 18px}
-->
Adduser
Modifyuser
Deletuser
Searchuser
Addbook
Deletebook
Borrowsearch
Search
Userpay
Update
Delete Book
Title:
***
try{
if(request.getParameter("enter")!=null){
Connection conn=Library.getConn();
Statement stmt=conn.createStatement();
String title = request.getParameter("title");
String deleteStr = "delete from book where title ='" + title + "'";
stmt.execute(deleteStr);
response.sendRedirect("success.jsp");
}
}catch (Exception ex) {
response.sendRedirect("fail.jsp");
ex.printStackTrace();}
%>