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