📄 books_del.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../error/error.jsp" %>
<%@ include file="../head/out.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新增类别</title>
<link rel="stylesheet" type="text/css" href="../css/bs.css"/>
<jsp:useBean id="books" scope="page" class="BookShop.MyDb" /></head>
</head>
<%
String idbook=(String)request.getParameter("idbook");
String sqld="DELETE FROM books WHERE idbook='"+idbook+"'";
int temp=-2;
temp=books.update(sqld);
if(temp>0){
session.setAttribute("success","删除成功");
}else{
session.setAttribute("success","删除失败");
}
response.sendRedirect("books.jsp");
%>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -