📄 remove.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!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>remove.jsp</title>
</head>
<%@page import="java.util.*" %>
<body>
<%
int id=Integer.parseInt(request.getParameter("id"));
LinkedList clsName=(LinkedList)session.getAttribute("lsName");
LinkedList clsType=(LinkedList)session.getAttribute("lsType");
LinkedList clsPrice=(LinkedList)session.getAttribute("lsPrice");
LinkedList clsOff=(LinkedList)session.getAttribute("lsOff");
LinkedList clsId=(LinkedList)session.getAttribute("lsId");
LinkedList clsNumber=(LinkedList)session.getAttribute("lsNumber");
LinkedList clsTotal=(LinkedList)session.getAttribute("lsTotal");
clsName.remove(id);
clsType.remove(id);
clsPrice.remove(id);
clsOff.remove(id);
clsId.remove(id);
clsNumber.remove(id);
clsTotal.remove(id);
session.setAttribute("lsName",clsName);
session.setAttribute("lsType",clsType);
session.setAttribute("lsPrice",clsPrice);
session.setAttribute("lsOff",clsOff);
session.setAttribute("lsId",clsId);
session.setAttribute("lsNumber",clsNumber);
session.setAttribute("lsTotal",clsTotal);
response.sendRedirect("../indexServlet?cmd=cart");
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -