?? jin.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>無標題文檔</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<jsp:useBean id="ConBean" scope="session" class="com.bitc.ch13.DBCon"/>
<%
String id = request.getParameter("id");
String uid = new String(request.getParameter("uid").getBytes("ISO-8859-1"),"GBK");
String s = request.getParameter("s");
Connection con = ConBean.getConnection();
Statement stmt = con.createStatement();
try{
String strdel = "update jsp8_news set jing = '"+s+"' where id = '"+id+"'";
stmt.executeUpdate(strdel);
}catch(Exception e){
out.println(e.toString());
return;
}
stmt.close();
ConBean.close();
%>
<script language="vbscript">
msgbox "OK!成功設置了該帖子!",vbInformation,"提示"
window.location="wenzhangx.jsp?id=<%=uid%>"
</script>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -