📄 xiugaihou.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="inc/conn.jsp"%>
<%
//解决中文乱码问题
response.setContentType("text/html;CharSet=gb2312");
request.setCharacterEncoding("gbk");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="style.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改后</title>
</head>
<body>
<%
String ID=request.getParameter("ID");
String BOOK_NAME=request.getParameter("BOOK_NAME");
String BOOK_ID=request.getParameter("BOOK_ID");
String BOOK_STYLE=request.getParameter("BOOK_STYLE");
String BOOK_CBS= request.getParameter("BOOK_CBS");
String BOOK_PRICE=request.getParameter("BOOK_PEICE");
String BOOK_DATE= request.getParameter("BOOK_DATE");
String BOOK_COUNT=request.getParameter("BOOK_COUNT");
//String id = request.getParameter("id");
//String all= request.getParameter("all");ID='"+ID+"',
String sql = "update tushubiao set BOOK_NAME='"+BOOK_NAME+"',BOOK_ID='"+BOOK_ID+"',BOOK_STYLE='"+BOOK_STYLE+"',BOOK_CBS='"+BOOK_CBS+"',BOOK_PRICE="+BOOK_PRICE+",BOOK_DATE='"+BOOK_DATE+"',BOOK_COUNT="+BOOK_COUNT+" where ID="+ID+"";
rs = stmt.executeQuery(sql);
//out.println(<font size=4 color=red>"正在修改记录,请稍候......</font><meta http-equiv="refresh" content="2;url=chaxunhou.jsp">");
%>
</body>
<script language="javascript">
location.href="chaxunhou.jsp";
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -