⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ok_edite_type.jsp

📁 JSP入门与提高
💻 JSP
字号:
<html>
<head>
<title>修改写入数据库</title>
<link rel=stylesheet href="../../style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="updateBean" scope="page" class="firm.firm" />
<%
  String id = (String) session.getValue("id");
  String type1= new String(request.getParameter("title").getBytes("8859_1"));  
  String strSQL="update item set type='" + type1 + "' where type_id=" + id + "";
  updateBean.executeUpdate(strSQL);
  out.print ("修改完毕!");
%>
<body onload="load2()">
<script language=javascript>
function load2(){
opener.setTimeout("submit11()",1500)
self.setTimeout("exit()",1500)
}
function exit(){
window.close()
}
</script>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -