?? publish_pro.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" import="java.sql.*" %>
<%@ page errorPage="index_error.jsp" %>
<jsp:useBean id="db" scope="request" class="com.msg.db.DBConnect">
</jsp:useBean>
<html>
<head>
<title>
publish_pro
</title>
</head>
<body bgcolor="#ffffff">
<%
Connection conn=db.getConn();
Statement stmt=conn.createStatement();
String news=new String(request.getParameter("news").getBytes("ISO-8859-1"));
String condition="update system set news='"+news+"'";
stmt.executeUpdate(condition);
stmt.close();
conn.close();
response.sendRedirect("index.jsp");
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -