ok_edite_type.jsp

来自「JSP入门与提高」· JSP 代码 · 共 28 行

JSP
28
字号
<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 + =
减小字号Ctrl + -
显示快捷键?