?? updateproduct.jsp
字號:
<%
/**
* Title: 商店購物管理系統的完整實現
* Description: 教學示范
* Copyright: Copyright (c) 2003
* Company: 北京師范大學計算機系
* @author 孫一林
* @version 1.0
*/
%>
<%@ page contentType="text/html; charset=GBK" %>
<html>
<%@ page import="java.sql.*"%>
<jsp:useBean id="shopManageBean" scope="session" class="shopmanagesystem.shopManageSystemBean"/> <%/*使用shopManageSystemBean的實例*/%>
<head>
<title>更新商品信息成功</title>
</head>
<body>
<%
int productID = Integer.parseInt(new String(request.getParameter("productID").getBytes("8859_1"))); //獲取用戶指定更新的庫存商品的商品ID號
String productName = new String(request.getParameter("productName").getBytes("8859_1")); //獲取用戶指定更新的庫存商品的商品名稱
float productPrice = Float.parseFloat(new String(request.getParameter("productPrice").getBytes("8859_1"))); //獲取用戶指定更新的庫存商品的商品價格
int productQuantity = Integer.parseInt(new String(request.getParameter("productQuantity").getBytes("8859_1"))); //獲取用戶指定更新的庫存商品的商品數量
shopManageBean.updateProduct(productID, productName, productPrice, productQuantity); //更新用戶指定ID號的庫存商品信息
out.println("<h2 align=center>更新商品信息成功</h2>");
out.println("<p align=center><a href=productList.jsp>返回</a></p>");
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -