modifyproduct_do.jsp
来自「电子书店管理系统」· JSP 代码 · 共 20 行
JSP
20 行
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../../error.jsp" %>
<%@ include file="../../jstl.inc"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../hellking.css" type=text/css rel=stylesheet>
</head>
<body>
<sql:update var="product" dataSource="${jspdev}" sql="update product set category='${param.category}',name='${param.name}',descn='${param.desc}',isPromot='${param.isPromot}',registerTime=getdate() where productId='${param.productId}'"/>
<sql:update var="item" dataSource="${jspdev}" sql="update item set productId='${param.productId}',listPrice='${param.listPrice}',unitCost='${param.unitPrice}',supplier='${param.supplier}',status='${param.status}',attr1='${param.attr1}',attr2='${param.attr2}',attr3='${param.attr3}',attr4='${param.attr4}',attr5='${param.attr5}' where productId='${param.productId}'"/>
<sql:update var="inventory" dataSource="${jspdev}" sql="update inventory set qty='${param.qty}' where itemid='${param.isbn}'"/>
更改商品成功!<br>
<a href="viewAllProduct.jsp">返回</a>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?