⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buy.jsp

📁 采用MVC模式,完成了对用户的管理(删除用户),对图书的管理(增,删,改,查),订单管理(购买图书,删除图书,修改图书的数量).
💻 JSP
字号:
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8" import="cart.*"%><%--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... actionon 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>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>JSP Page</title>    </head>    <body>    <h1>buy.jsp  JSP Page</h1>    <%    cart.CartRemote cart=(CartRemote)session.getAttribute("cart");      String username=cart.getCustomerName();    out.println(username+"welcome!");    //out.println(cart.getCustomerName()+"welcome!");    %>    <form action="BuyServlet">        <input type="checkbox" name="books" value="jsp">jsp<br>        <input type="checkbox" name="books" value="XML">XML<br>        <input type="checkbox" name="books" value="C ">C<br>        <input type="submit" value="yes to buy">    </form>    <a href="show.jsp">show the cart</a>    <%--    This example uses JSTL, uncomment the taglib directive above.    To test, display the page like this: index.jsp?sayHello=true&name=Murphy    --%>    <%--    <c:if test="${param.sayHello}">        <!-- Let's welcome the user ${param.name} -->        Hello ${param.name}!    </c:if>    --%>        </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -