forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTcheck.jsp
More file actions
28 lines (27 loc) · 740 Bytes
/
Tcheck.jsp
File metadata and controls
28 lines (27 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<% request.setCharacterEncoding("gb2312"); %>
<%@ page import="com.bwm.db.Condb"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
Condb con=new Condb();
String str=request.getParameter("Numbic");
out.println(str);
String choose=request.getParameter("choose");
String sql="";
if(choose.equals("on")){
sql="update tb_Task set Whether=1 where Taskname='"+str+"'";
}
int temp=con.executeUpdate(sql);
if(temp>0){
response.sendRedirect("taskedit.jsp");
}else{
out.println("数据库产生错误请与系统统管理员联系");
}
%>
</body>
</html>