?? goods_delete.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>歡迎光臨購物車</title>
<jsp:useBean id="Goods" scope="session" class="com.chapter2.Goods"/>
</head>
<body>
<div align="center">
<h1>歡迎光臨購物車</h1>
<%
//獲取所要刪除的商品名稱
String sGoodsName = request.getParameter("GoodsName");
//編碼轉換
sGoodsName = new String(sGoodsName.getBytes("iso-8859-1"));
//刪除對應的商品信息
Goods.delete(sGoodsName);
//跳轉當前頁面
response.sendRedirect("goods_do.jsp");
%>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -