恭喜:添加成功!
28 | 29 |├── books ├── WebContent │ ├── META-INF │ │ └── MANIFEST.MF │ ├── image │ │ ├── bg01.jpg │ │ ├── logo.gif │ │ ├── logo01.jpg │ │ ├── button_reg.gif │ │ ├── login_lock.gif │ │ ├── logo_ps03.png │ │ ├── step_arrow.gif │ │ ├── book │ │ │ ├── book_01.gif │ │ │ ├── book_02.gif │ │ │ ├── book_03.gif │ │ │ ├── book_04.gif │ │ │ ├── book_05.gif │ │ │ ├── book_06.gif │ │ │ ├── book_07.gif │ │ │ ├── book_08.gif │ │ │ ├── book_09.gif │ │ │ └── book_10.gif │ │ ├── button_chart.png │ │ ├── button_login.gif │ │ ├── button_shop.gif │ │ ├── success_ico.gif │ │ ├── button_gray_bg.gif │ │ ├── button_login副本.gif │ │ ├── button_register.gif │ │ ├── button_search.gif │ │ └── step_arrow_past.gif │ ├── WEB-INF │ │ ├── lib │ │ │ ├── jstl.jar │ │ │ ├── standard.jar │ │ │ └── mysql-connector-java-5.1.8-bin.jar │ │ └── web.xml │ ├── logout.jsp │ ├── index.jsp │ ├── shopping_success.jsp │ ├── register_success.jsp │ ├── login.jsp │ ├── main_head.jsp │ ├── orderlist.jsp │ ├── register.jsp │ ├── main.jsp │ ├── shopping.jsp │ ├── css │ │ └── style.css │ └── js │ │ └── valiadate.js ├── image │ ├── img01.png │ ├── img02.png │ ├── img03.png │ ├── img04.png │ ├── img05.png │ ├── img06.png │ ├── img07.png │ ├── img08.png │ ├── img09.png │ ├── img10.png │ ├── img11.png │ ├── img12.png │ ├── img13.png │ ├── img14.png │ ├── img15.png │ ├── phone01.jpg │ ├── phone01.png │ ├── phone02.jpg │ └── phone03.jpg ├── src │ └── com │ │ ├── dao │ │ ├── ItemDao.java │ │ ├── UserDao.java │ │ ├── OrderDao.java │ │ ├── BookDao.java │ │ ├── impl │ │ │ ├── UserDaoImpl.java │ │ │ ├── ItemDaoImpl.java │ │ │ ├── OrderDaoImpl.java │ │ │ └── BookDaoImpl.java │ │ └── BaseDao.java │ │ ├── biz │ │ ├── ItemBiz.java │ │ ├── UserBiz.java │ │ ├── impl │ │ │ ├── ItemBizImpl.java │ │ │ ├── OrderBizImpl.java │ │ │ ├── UserBizImpl.java │ │ │ └── BookBizImpl.java │ │ ├── OrderBiz.java │ │ └── BookBiz.java │ │ ├── entity │ │ ├── UserInfo.java │ │ ├── Order.java │ │ ├── Book.java │ │ └── Item.java │ │ └── servlet │ │ ├── ShowOrderServlet.java │ │ ├── LoginServlet.java │ │ ├── SearchServlet.java │ │ ├── AddOrderServlet.java │ │ ├── RegisterServlet.java │ │ ├── ModifyCartServlet.java │ │ └── CartServlet.java ├── .gitignore └── bookstore.sql └── README.md /books/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /books/image/img01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img01.png -------------------------------------------------------------------------------- /books/image/img02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img02.png -------------------------------------------------------------------------------- /books/image/img03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img03.png -------------------------------------------------------------------------------- /books/image/img04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img04.png -------------------------------------------------------------------------------- /books/image/img05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img05.png -------------------------------------------------------------------------------- /books/image/img06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img06.png -------------------------------------------------------------------------------- /books/image/img07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img07.png -------------------------------------------------------------------------------- /books/image/img08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img08.png -------------------------------------------------------------------------------- /books/image/img09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img09.png -------------------------------------------------------------------------------- /books/image/img10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img10.png -------------------------------------------------------------------------------- /books/image/img11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img11.png -------------------------------------------------------------------------------- /books/image/img12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img12.png -------------------------------------------------------------------------------- /books/image/img13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img13.png -------------------------------------------------------------------------------- /books/image/img14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img14.png -------------------------------------------------------------------------------- /books/image/img15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/img15.png -------------------------------------------------------------------------------- /books/image/phone01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/phone01.jpg -------------------------------------------------------------------------------- /books/image/phone01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/phone01.png -------------------------------------------------------------------------------- /books/image/phone02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/phone02.jpg -------------------------------------------------------------------------------- /books/image/phone03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/image/phone03.jpg -------------------------------------------------------------------------------- /books/WebContent/image/bg01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/bg01.jpg -------------------------------------------------------------------------------- /books/WebContent/image/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/logo.gif -------------------------------------------------------------------------------- /books/WebContent/image/logo01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/logo01.jpg -------------------------------------------------------------------------------- /books/WebContent/WEB-INF/lib/jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/WEB-INF/lib/jstl.jar -------------------------------------------------------------------------------- /books/WebContent/image/button_reg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_reg.gif -------------------------------------------------------------------------------- /books/WebContent/image/login_lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/login_lock.gif -------------------------------------------------------------------------------- /books/WebContent/image/logo_ps03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/logo_ps03.png -------------------------------------------------------------------------------- /books/WebContent/image/step_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/step_arrow.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_01.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_02.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_03.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_04.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_05.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_06.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_06.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_07.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_07.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_08.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_08.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_09.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_09.gif -------------------------------------------------------------------------------- /books/WebContent/image/book/book_10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/book/book_10.gif -------------------------------------------------------------------------------- /books/WebContent/image/button_chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_chart.png -------------------------------------------------------------------------------- /books/WebContent/image/button_login.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_login.gif -------------------------------------------------------------------------------- /books/WebContent/image/button_shop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_shop.gif -------------------------------------------------------------------------------- /books/WebContent/image/success_ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/success_ico.gif -------------------------------------------------------------------------------- /books/WebContent/WEB-INF/lib/standard.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/WEB-INF/lib/standard.jar -------------------------------------------------------------------------------- /books/WebContent/image/button_gray_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_gray_bg.gif -------------------------------------------------------------------------------- /books/WebContent/image/button_login副本.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_login副本.gif -------------------------------------------------------------------------------- /books/WebContent/image/button_register.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_register.gif -------------------------------------------------------------------------------- /books/WebContent/image/button_search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/button_search.gif -------------------------------------------------------------------------------- /books/WebContent/image/step_arrow_past.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/image/step_arrow_past.gif -------------------------------------------------------------------------------- /books/WebContent/WEB-INF/lib/mysql-connector-java-5.1.8-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeYoke/bookStore/HEAD/books/WebContent/WEB-INF/lib/mysql-connector-java-5.1.8-bin.jar -------------------------------------------------------------------------------- /books/src/com/dao/ItemDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.Item; 4 | 5 | public interface ItemDao { 6 | /** 7 | * 添加订单详细信息 8 | * @param item 9 | * @return 10 | */ 11 | public int insert(Item item); 12 | /** 13 | * 查询总记录数 14 | * @return 15 | */ 16 | public int count(); 17 | } 18 | -------------------------------------------------------------------------------- /books/WebContent/logout.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%--用户退出登录 --%> 4 | <% 5 | request.getSession().removeAttribute("loginuser"); 6 | request.getSession().removeAttribute("bookcart"); 7 | request.getSession().removeAttribute("bookcart_count"); 8 | response.sendRedirect("login.jsp"); 9 | %> -------------------------------------------------------------------------------- /books/src/com/biz/ItemBiz.java: -------------------------------------------------------------------------------- 1 | package com.biz; 2 | 3 | import com.dao.ItemDao; 4 | import com.entity.Item; 5 | 6 | public interface ItemBiz { 7 | /** 8 | * 添加订单详细信息 9 | * @param item 10 | * @return 11 | */ 12 | public boolean addItemToOrder(Item item); 13 | /** 14 | * 初始化订单信息 15 | * @param itemdao 16 | */ 17 | public void setItemdao(ItemDao itemdao); 18 | 19 | public int count(); 20 | } 21 | -------------------------------------------------------------------------------- /books/WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 |
6 | 7 |恭喜:添加成功!
28 | 29 |恭喜:注册成功!
39 | 40 || 订单编号 | 34 |收货人 | 35 |下单时间 | 36 |总价 | 37 |订单商品 | 38 |商品名称 | 39 |商品单价 | 40 |商品数量 | 41 |
|---|---|---|---|---|---|---|---|
| ${order.oid } | 45 |${order.username } | 46 |${order.createdate } | 47 |${order.total_price } | 48 |${order.bookname } | 50 |${order.b_price } | 51 |${order.total_price/order.b_price } | 52 |