📄 emptybasket.jsp
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="com.iss.bean.ShopCart" %>
<%@ page import="com.iss.bean.BookBean" %>
<%@ page import="java.util.*" %>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>empty Basket</title>
</head>
<body>
<%
ShopCart shopcart=(ShopCart) session.getAttribute("shopcart");
List<BookBean> b=shopcart.getBooks();
b.clear();
shopcart.setBooks(b);
out.println("<html><head><title>删除成功</title></head><body>删除成功,请返回<a href='shopcart.jsp'>购物车</a></body></html>");
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -