📄 delect.jsp
字号:
<%@ page language="java" import="java.util.*,com.model.javabean.DB" pageEncoding="ISO-8859-1"%>
<%
String rev_author = request.getParameter("author");
rev_author = new String(rev_author.getBytes("ISO-8859-1"),"gb2312");
String rev_title = request.getParameter("title");
rev_title = new String( rev_title.getBytes("ISO-8859-1"),"gb2312");
System.out.print(rev_author);
System.out.print(rev_title);
String id = request.getParameter("id");
String num = request.getParameter("num");
String sql = "delete from tb_revert where rev_author='"+rev_author+"' and rev_title='"+rev_title+"' ";
DB mydb = new DB();
int i=mydb.Delete(sql);
if(i>0){
%><meta http-equiv="refresh" content="0;URL=showIndividual.jsp?id=<%=id%>&num=<%=num%>"><%
}
else{
%><meta http-equiv="refresh" content="0;URL=showIndividual.jsp?id=<%=id%>&num=<%=num%>"><%
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'delect.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
iThis is my JSP page. <br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -