├── .DS_Store ├── .gitattributes ├── README.md ├── WebRoot ├── META-INF │ └── MANIFEST.MF ├── Mindex.jsp ├── WEB-INF │ ├── classes │ │ ├── AdminServlet │ │ │ ├── AFGoodsServlet.class │ │ │ ├── AddCateServlet.class │ │ │ ├── AddCateShowServlet.class │ │ │ ├── AddProductShowServlet.class │ │ │ ├── CateDetailShowServlet.class │ │ │ ├── CategoryShowServlet.class │ │ │ ├── CommentShowServlet.class │ │ │ ├── DCateServlet.class │ │ │ ├── DProductServlet.class │ │ │ ├── ModifyCateServlet.class │ │ │ ├── ModifyProductServlet.class │ │ │ ├── OrderDetailShowServlet.class │ │ │ ├── OrderShowServlet.class │ │ │ ├── ProDetailShowServlet.class │ │ │ ├── ProductAddServlet.class │ │ │ ├── ProductShowServlet.class │ │ │ ├── SaleServlet.class │ │ │ ├── UpdateAdminServlet.class │ │ │ └── UserShowServlet.class │ │ ├── Bean │ │ │ ├── Car.class │ │ │ ├── Category.class │ │ │ ├── Chart.class │ │ │ ├── Comment.class │ │ │ ├── Order.class │ │ │ ├── OrderDetail.class │ │ │ ├── Product.class │ │ │ └── User.class │ │ ├── BeanDao │ │ │ ├── BaseDao.class │ │ │ ├── CarDao.class │ │ │ ├── CategoryDao.class │ │ │ ├── CommentDao.class │ │ │ ├── OrderDao.class │ │ │ ├── OrderDetailDao.class │ │ │ ├── ProductDao.class │ │ │ ├── Tools.class │ │ │ └── UserDao.class │ │ ├── ShopServlet │ │ │ ├── AddShopCarServlet.class │ │ │ ├── DeleteCommentServlet.class │ │ │ ├── FinshGoodsServlet.class │ │ │ ├── FinshOrderServlet.class │ │ │ ├── HotLowServlet.class │ │ │ ├── IndexServlet.class │ │ │ ├── SelectCommentServlet.class │ │ │ ├── SelectOrderServlet.class │ │ │ ├── SelectProImgServlet.class │ │ │ ├── SelectProductServlet.class │ │ │ ├── ShopSelectServlet.class │ │ │ ├── ShopServlet.class │ │ │ ├── ShowCommentServlet.class │ │ │ ├── UpdateCarServlet.class │ │ │ └── UpdateCommentServlet.class │ │ └── UserAdmin │ │ │ ├── LoginServlet.class │ │ │ ├── OutServlet.class │ │ │ ├── RegServlet.class │ │ │ └── UpdateUserServlet.class │ ├── lib │ │ ├── gnujaxp.jar │ │ ├── jcommon-1.0.16.jar │ │ ├── jfreechart-1.0.13.jar │ │ ├── jstl-1.1.2 .jar │ │ ├── mysql-connector-java-5.1.21.jar │ │ ├── smartupload.jar │ │ └── standard-1.1.2.jar │ └── web.xml ├── admin │ ├── admincenter.jsp │ ├── cateadd.jsp │ ├── category.jsp │ ├── catemodify.jsp │ ├── comment.jsp │ ├── order.jsp │ ├── orderdetail.jsp │ ├── product.jsp │ ├── productadd.jsp │ ├── productmodify.jsp │ ├── sale.jsp │ ├── saleshow.jsp │ ├── updateadmin.jsp │ └── user.jsp ├── comment.jsp ├── css │ ├── loginstyle.css │ ├── product.css │ └── style.css ├── finshcomment.jsp ├── images │ ├── cloth │ │ ├── 1.jpg │ │ ├── 10.jpg │ │ ├── 11.jpg │ │ ├── 12.jpg │ │ ├── 13.jpg │ │ ├── 14.jpg │ │ ├── 15.jpg │ │ ├── 16.jpg │ │ ├── 17.jpg │ │ ├── 18.jpg │ │ ├── 19.jpg │ │ ├── 2.jpg │ │ ├── 20.jpg │ │ ├── 21.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ ├── 7.jpg │ │ ├── 8.jpg │ │ └── 9.jpg │ ├── icon-user.png │ ├── login.jpg │ ├── logo.jpg │ └── mima.png ├── index.jsp ├── login.jsp ├── order-result.jsp ├── productlist.jsp ├── proimg.jsp ├── re-result.jsp ├── reg.jsp ├── scripts │ └── function.js ├── shopcar.jsp ├── updateuser.jsp ├── usercenter.jsp └── userorder.jsp └── src ├── AdminServlet ├── AFGoodsServlet.java ├── AddCateServlet.java ├── AddCateShowServlet.java ├── AddProductShowServlet.java ├── CateDetailShowServlet.java ├── CategoryShowServlet.java ├── CommentShowServlet.java ├── DCateServlet.java ├── DProductServlet.java ├── ModifyCateServlet.java ├── ModifyProductServlet.java ├── OrderDetailShowServlet.java ├── OrderShowServlet.java ├── ProDetailShowServlet.java ├── ProductAddServlet.java ├── ProductShowServlet.java ├── SaleServlet.java ├── UpdateAdminServlet.java └── UserShowServlet.java ├── Bean ├── Car.java ├── Category.java ├── Chart.java ├── Comment.java ├── Order.java ├── OrderDetail.java ├── Product.java └── User.java ├── BeanDao ├── BaseDao.java ├── CarDao.java ├── CategoryDao.java ├── CommentDao.java ├── OrderDao.java ├── OrderDetailDao.java ├── ProductDao.java ├── Tools.java └── UserDao.java ├── ShopServlet ├── AddShopCarServlet.java ├── DeleteCommentServlet.java ├── FinshGoodsServlet.java ├── FinshOrderServlet.java ├── HotLowServlet.java ├── IndexServlet.java ├── SelectCommentServlet.java ├── SelectOrderServlet.java ├── SelectProImgServlet.java ├── SelectProductServlet.java ├── ShopSelectServlet.java ├── ShopServlet.java ├── ShowCommentServlet.java ├── UpdateCarServlet.java └── UpdateCommentServlet.java └── UserAdmin ├── LoginServlet.java ├── OutServlet.java ├── RegServlet.java └── UpdateUserServlet.java /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/.DS_Store -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=java 2 | *.css linguist-language=java 3 | *.html linguist-language=java 4 | *.vue linguist-language=java -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 全目录 2 | 3 | [更多系统、论文,供君选择 ~~>](https://www.yuque.com/wisebit/blog) 4 | 5 | # 289.ClothingMallManagementSystem 6 | 7 |

群: 983063232(入群获取sql文件)

8 |

QQ: 206157502(加好友获取sql文件)

9 | 10 |

289.衣服商城管理系统

11 | 12 | 13 | 14 |

15 | 16 | 17 | 18 | 19 |

20 | 21 | # 简介 22 | 23 | > 本代码来源于网络,仅供学习参考使用,请入群(983063232)后联系群主索要sql文件! 24 | > 25 | > 提供1.远程部署/2.修改代码/3.设计文档指导/4.框架代码讲解等服务 26 | > 27 | > 登录地址:http://localhost:8080/BSshopping/login.jsp 28 | > 29 | > 用户名: user 密码: 123456 30 | > 31 | > 管理员用户名: admin 密码: 123456 32 | > 33 | 34 | 35 | # 环境 36 | 37 | - IntelliJ IDEA 2021.3 38 | 39 | - Mysql 5.7.26 40 | 41 | - Tomcat 7.0.73 42 | 43 | - JDK 1.8 44 | 45 | 46 | 47 | 48 | 49 | ## 缩略图 50 | 51 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/80d018f0-f49e-4997-b1ee-60789e1281fb.png) 52 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/b88a6311-2962-4d1f-8d9c-29f8ab1ba683.png) 53 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/76fb6749-1e4c-486f-9b10-d70f7d4fff31.png) 54 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/af9c5952-f778-4a00-a124-f338638b76d7.png) 55 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/97490449-2685-452b-b9d9-afb3f421d3d0.png) 56 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/539256fa-348e-42c1-a45f-9dd4a18c700e.png) 57 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/53e7910f-bfdf-4b81-83be-d6e874eba230.png) 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /WebRoot/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebRoot/Mindex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*,Bean.Chart" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 后台-首页 9 | 10 | 19 | 20 | 21 | 22 | 23 |
24 |
25 | 29 | 33 | 34 |
35 |
36 |
37 | 40 |
41 | 42 |
43 |
44 | 45 |
46 |
47 |
48 |
49 |
50 | 56 |
57 | 58 |
59 | 99 | 100 | 101 | 102 |
103 | 104 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/AFGoodsServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/AFGoodsServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/AddCateServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/AddCateServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/AddCateShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/AddCateShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/AddProductShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/AddProductShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/CateDetailShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/CateDetailShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/CategoryShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/CategoryShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/CommentShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/CommentShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/DCateServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/DCateServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/DProductServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/DProductServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/ModifyCateServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/ModifyCateServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/ModifyProductServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/ModifyProductServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/OrderDetailShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/OrderDetailShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/OrderShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/OrderShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/ProDetailShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/ProDetailShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/ProductAddServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/ProductAddServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/ProductShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/ProductShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/SaleServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/SaleServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/UpdateAdminServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/UpdateAdminServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/AdminServlet/UserShowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/AdminServlet/UserShowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/Car.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/Car.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/Category.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/Category.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/Chart.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/Chart.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/Comment.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/Comment.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/Order.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/Order.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/OrderDetail.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/OrderDetail.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/Product.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/Bean/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/Bean/User.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/BaseDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/BaseDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/CarDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/CarDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/CategoryDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/CategoryDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/CommentDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/CommentDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/OrderDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/OrderDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/OrderDetailDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/OrderDetailDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/ProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/ProductDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/Tools.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/Tools.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/BeanDao/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/BeanDao/UserDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/AddShopCarServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/AddShopCarServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/DeleteCommentServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/DeleteCommentServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/FinshGoodsServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/FinshGoodsServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/FinshOrderServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/FinshOrderServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/HotLowServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/HotLowServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/IndexServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/IndexServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/SelectCommentServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/SelectCommentServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/SelectOrderServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/SelectOrderServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/SelectProImgServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/SelectProImgServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/SelectProductServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/SelectProductServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/ShopSelectServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/ShopSelectServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/ShopServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/ShopServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/ShowCommentServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/ShowCommentServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/UpdateCarServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/UpdateCarServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/ShopServlet/UpdateCommentServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/ShopServlet/UpdateCommentServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/UserAdmin/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/UserAdmin/LoginServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/UserAdmin/OutServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/UserAdmin/OutServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/UserAdmin/RegServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/UserAdmin/RegServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/UserAdmin/UpdateUserServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/classes/UserAdmin/UpdateUserServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/gnujaxp.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/gnujaxp.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jcommon-1.0.16.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/jcommon-1.0.16.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jfreechart-1.0.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/jfreechart-1.0.13.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/jstl-1.1.2 .jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/jstl-1.1.2 .jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mysql-connector-java-5.1.21.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.21.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/smartupload.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/smartupload.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/standard-1.1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/WEB-INF/lib/standard-1.1.2.jar -------------------------------------------------------------------------------- /WebRoot/admin/cateadd.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 后台-类目新增 9 | 10 | 193 | 194 | 195 | 196 |
197 |
198 | 202 | 206 | 207 |
208 |
209 |
210 | 213 |
214 | 215 |
216 |
217 | 218 |
219 |
220 |
221 |
222 |
223 | 229 |
230 | 231 |
232 | 294 | 295 |
296 | 297 | 300 | 301 | 302 | -------------------------------------------------------------------------------- /WebRoot/admin/productadd.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/admin/productadd.jsp -------------------------------------------------------------------------------- /WebRoot/admin/productmodify.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/admin/productmodify.jsp -------------------------------------------------------------------------------- /WebRoot/admin/sale.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 后台-销售额查询 9 | 10 | 193 | 194 | 195 | 196 |
197 |
198 | 202 | 206 | 207 |
208 |
209 |
210 | 213 |
214 | 215 |
216 |
217 | 218 |
219 |
220 |
221 |
222 |
223 | 229 |
230 | 231 |
232 | 286 | 287 |
288 | 289 | 290 | 291 | 294 | 295 | 296 | -------------------------------------------------------------------------------- /WebRoot/admin/saleshow.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 后台-销售额查询 9 | 10 | 193 | 194 | 195 | 196 |
197 |
198 | 202 | 206 | 207 |
208 |
209 |
210 | 213 |
214 | 215 |
216 |
217 | 218 |
219 |
220 |
221 |
222 |
223 | 229 |
230 | 231 |
232 | 285 | 286 |
287 | 288 | 289 | 290 | 293 | 294 | 295 | -------------------------------------------------------------------------------- /WebRoot/comment.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-个人订单 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 22 | 28 | 29 |
30 |
31 |
32 | 35 |
36 | 37 |
38 |
39 | 40 | 41 |
42 |
43 |
44 |
45 |
46 | 51 |
52 | 53 |
54 | 83 |
84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /WebRoot/css/loginstyle.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | *{ 4 | magin:0px; 5 | padding:0px; 6 | 7 | } 8 | 9 | .loginer{ 10 | width:550px; 11 | height: 350px; 12 | margin:0 auto; 13 | background-color: white; 14 | } 15 | 16 | .loginer table{ 17 | width: 500px; 18 | margin:20px auto; 19 | } 20 | 21 | 22 | .loginer input { 23 | width: 300px; 24 | height: 40px; 25 | margin:12px 100px; 26 | margin-top: 10px; 27 | 28 | } 29 | #sub{ 30 | width: 300px; 31 | height:40px; 32 | 33 | } 34 | 35 | .loginer h1 { 36 | font-size:20px; 37 | line-height:54px; 38 | color:#4c4d4b; 39 | padding-left:20px; 40 | border-bottom:solid #E85F61 3px; 41 | width: 100px; 42 | } 43 | .loginer h2 { 44 | float:right; 45 | font-size:18px; 46 | line-height:54px; 47 | color:#4c4d4b; 48 | padding-left:200px; 49 | width: 100px; 50 | } 51 | #sub1{ 52 | margin-left:10px; 53 | width: 300px; 54 | height:40px; 55 | 56 | } 57 | /**/ 58 | #login{ 59 | 60 | background:url("../images/login.jpg") no-repeat; 61 | background-size:cover; 62 | padding:100px; 63 | height:500px; 64 | } 65 | #na1{ 66 | background:url("images/icon-user.png") 5px 5px no-repeat; 67 | background-size: 30px; 68 | text-indent:50px; 69 | font-size: 18px; 70 | } 71 | #password{ 72 | background:url("images/mima.png") 5px 5px no-repeat; 73 | background-size:30px; 74 | text-indent:50px; 75 | } 76 | h2{ 77 | font-size:20px; 78 | line-height:54px; 79 | color:#4c4d4b; 80 | padding-left:px; 81 | border-bottom:solid #E85F61 3px; 82 | 83 | 84 | } 85 | .sub1{ 86 | position: relative; 87 | top:-20px; 88 | left: 24px; 89 | width: 300px; 90 | height:40px; 91 | } 92 | -------------------------------------------------------------------------------- /WebRoot/css/product.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | 4 | *{ 5 | margin: 0; 6 | padding: 0; 7 | } 8 | body{background-color:#f2f2f2f2;} 9 | #suber{ 10 | width:1080px; 11 | margin: 0 auto; 12 | clear: both; 13 | } 14 | .top{ 15 | height:44px; 16 | line-height: 44px; 17 | margin: 0 20px; 18 | } 19 | ul{ 20 | list-style-type: none; 21 | } 22 | .top li{ 23 | float: left; 24 | } 25 | .top #leftlink a{ 26 | padding-right: 10px; 27 | } 28 | .top #rightlink{ 29 | float: right; 30 | } 31 | .top #rightlink a{ 32 | padding-left: 10px; 33 | margin-left: 10px; 34 | } 35 | .top a{ 36 | text-decoration: none; 37 | color: #666; 38 | font-size: 12px; 39 | } 40 | .top a:hover{ 41 | color:#E85F61; 42 | } 43 | 44 | .clearfix:after{ 45 | content: ""; 46 | display: block; 47 | clear: both; 48 | } 49 | .header{ 50 | width: 1080px; 51 | background-color: white; 52 | border-radius: 5px; 53 | border-bottom-right-radius: 0px; 54 | border-bottom-left-radius: 0px; 55 | 56 | } 57 | .header-top{ 58 | margin: 0 1.5em 0; 59 | border-bottom: 3px solid #c31114; 60 | } 61 | .logo{ 62 | margin:22px 0 18px; 63 | clear:both; 64 | } 65 | .info{ 66 | margin:46px 0 20px; 67 | } 68 | .fl{ 69 | float: left; 70 | } 71 | .fr{ 72 | float:right; 73 | } 74 | 75 | 76 | .header-nav{ 77 | position: relative; 78 | } 79 | .nav-item{ 80 | float: left; 81 | width: 12.5%; 82 | text-align: center; 83 | height: 58px; 84 | line-height: 58px; 85 | font-size: 16px; 86 | } 87 | .nav-item:hover .submenu{ 88 | display: block; 89 | } 90 | .nav-item>a{ 91 | text-decoration: none; 92 | color: #000; 93 | } 94 | 95 | .banner{ 96 | width: 1080px; 97 | height: auto; 98 | background-color: white; 99 | margin-top: 20px; 100 | clean:both; 101 | 102 | } 103 | .lefterbox{ 104 | width: 200px; 105 | height: 800px; 106 | float:left; 107 | background:#fafafa; 108 | } 109 | .firstbox{ 110 | margin: 0 auto; 111 | width: 200px; 112 | 113 | } 114 | 115 | .lefterbox h2 { 116 | background:#c31114; 117 | font-size:16px; 118 | color:white; 119 | padding:5px 20px; 120 | } 121 | .firstbox li { 122 | font-weight:550; 123 | padding:2px 20px; 124 | margin-top: 10px; 125 | } 126 | .firstbox .cli { 127 | text-indent:60px; 128 | font-weight:300; 129 | padding:2px 20px; 130 | margin-top: 5px; 131 | } 132 | .firstbox li a{ 133 | color:#666; 134 | text-decoration:none; 135 | } 136 | .firstbox li a:hover{ 137 | color:#c31114; 138 | text-decoration:none; 139 | } 140 | .footer{ 141 | padding-top: 20px; 142 | border-top: 3px solid #c31114; 143 | width:1080px; 144 | margin: 0 auto; 145 | height: 35px; 146 | background-color: white; 147 | border-bottom-left-radius: 10px; 148 | border-bottom-right-radius: 10px; 149 | clear: both; 150 | 151 | 152 | } 153 | .main{ 154 | height: 800px; 155 | width: 880px; 156 | background-color:white; 157 | float:right;} 158 | .main h1{ 159 | font-weight: normal; 160 | font-size:16px; 161 | color:#666; 162 | padding-left: 30px; 163 | padding:5px 20px 0 20px ; } 164 | 165 | .main h1>a{ 166 | font-weight: normal; 167 | font-size:16px; 168 | color:#666; 169 | text-decoration: none; 170 | } 171 | .main h1>a:hover{ 172 | color:#c31114; 173 | text-decoration:none; 174 | } 175 | 176 | .productlist{ 177 | padding:30px; 178 | } 179 | .product li { 180 | width:200px; 181 | height:260px; 182 | line-height:22px; 183 | font-size:14px; 184 | overflow:hidden; 185 | float:left; 186 | margin-right:5px; 187 | 188 | } 189 | .product li:hover{ 190 | width:200px; 191 | height:260px; 192 | line-height:22px; 193 | font-size:14px; 194 | overflow:hidden; 195 | float:left; 196 | margin-right:5px; 197 | box-shadow: 3px 3px 5px #999; 198 | 199 | } 200 | .productlist img { 201 | width:180px; 202 | height:180px; 203 | padding: 0px; 204 | margin:10px; 205 | 206 | } 207 | .productlist .title,.price{ 208 | font-weight: normal; 209 | font-size:16px; 210 | color:#000000; 211 | height:20px; 212 | margin:8px 10px; 213 | } 214 | .productlist a{ 215 | color:#000000; 216 | text-decoration: none; 217 | } 218 | .productlist a:hover{ 219 | color:#c31114; 220 | text-decoration:none; 221 | } 222 | .pager { margin-top:30px; } 223 | .pager ul { float:right; } 224 | .pager ul li { 225 | float:left; 226 | border:1px solid #eee; 227 | line-height:18px; 228 | padding:0 3px; 229 | margin:0 1px; 230 | display:inline; } 231 | .pager ul li.current { font-weight:bold; color:#630; } 232 | 233 | #magnifier{ 234 | width:300px; 235 | height:300px; 236 | position:absolute; 237 | top:300px; 238 | magin:25px 30px; 239 | } 240 | #magnifier img{ 241 | width:300px; 242 | height:300px; 243 | 244 | } 245 | .buy { 246 | float:right; 247 | width:380px; 248 | height:400px; 249 | line-height:40px; 250 | border:0px; 251 | margin-top: 60px;} 252 | .price { color:#c31114; font-weight:bold; font-size:20px; } 253 | .button { 254 | 255 | padding:8px; 256 | background:#c31114; 257 | text-align:center; 258 | color:white; 259 | height:40px; 260 | width:180px; 261 | margin: 10px auto; 262 | } 263 | .button a{ 264 | font-size:18px; 265 | color:white; 266 | text-decoration: none; 267 | font-weight: bold; 268 | 269 | } 270 | .introduce{position: relative;top:500px;padding: 30px;} 271 | .introduce h2{font-size:24px;} 272 | .introduce .text { padding:20px; font-size:14px; line-height:25px; } 273 | .search-form{ 274 | 275 | height: 33px; 276 | width: 350px; 277 | border:1px solid #666; 278 | border-radius: 5px; 279 | line-height: 33px; 280 | margin-left: 1.5em; 281 | padding-left: 8px; 282 | float:right; 283 | color:#C2C2C2; 284 | } 285 | #searchname { 286 | display:inline-block; 287 | height:30px; 288 | width:80px; 289 | border:0; 290 | position: relative; 291 | top:2px; 292 | left:375px; 293 | text-decoration:none; 294 | background-color: white; 295 | border-left:1px solid #666; 296 | 297 | } 298 | .chartimg{ 299 | height: 500px; 300 | width: 880px; 301 | border:0; 302 | margin: 0 auto; 303 | } 304 | 305 | -------------------------------------------------------------------------------- /WebRoot/css/style.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | 4 | *{ 5 | margin: 0; 6 | padding: 0; 7 | } 8 | 9 | body{background-color:#f2f2f2f2;} 10 | 11 | #suber{ 12 | width: 1080px; 13 | margin: 0 auto; 14 | clear: both; 15 | } 16 | .top{ 17 | height:44px; 18 | line-height: 44px; 19 | margin: 0 20px; 20 | } 21 | ul{ 22 | list-style-type: none; 23 | } 24 | .top li{ 25 | float: left; 26 | } 27 | .top #leftlink a{ 28 | padding-right: 10px; 29 | } 30 | .top #rightlink{ 31 | float: right; 32 | } 33 | .top #rightlink a{ 34 | padding-left: 10px; 35 | margin-left: 10px; 36 | } 37 | .top a{ 38 | text-decoration: none; 39 | color: #666666; 40 | font-size: 12px; 41 | } 42 | .top a:hover{ 43 | color:#E85F61; 44 | } 45 | 46 | .clearfix:after{ 47 | content: ""; 48 | display: block; 49 | clear: both; 50 | } 51 | .header{ 52 | width: 1080px; 53 | background-color: white; 54 | border-radius: 5px; 55 | border-bottom-right-radius: 0px; 56 | border-bottom-left-radius: 0px; 57 | 58 | } 59 | .header-top{ 60 | margin: 0 1.5em 0; 61 | border-bottom: 3px solid #c31114; 62 | } 63 | .logo{ 64 | margin:22px 0 18px; 65 | clear:both; 66 | } 67 | .info{ 68 | margin:46px 0 20px; 69 | } 70 | .fl{ 71 | float: left; 72 | } 73 | .fr{ 74 | float:right; 75 | } 76 | 77 | .search-form{ 78 | 79 | height: 33px; 80 | width: 350px; 81 | border:1px solid #666; 82 | border-radius: 5px; 83 | line-height: 33px; 84 | margin-left: 1.5em; 85 | padding-left: 8px; 86 | float:right; 87 | color:#C2C2C2; 88 | } 89 | #searchname { 90 | display:inline-block; 91 | height:30px; 92 | width:80px; 93 | border:0; 94 | position: relative; 95 | top:2px; 96 | left:375px; 97 | text-decoration:none; 98 | background-color: white; 99 | border-left:1px solid #666; 100 | 101 | } 102 | .header-nav{ 103 | position: relative; 104 | } 105 | .nav-item{ 106 | float: left; 107 | width: 12.5%; 108 | text-align: center; 109 | height: 58px; 110 | line-height: 58px; 111 | font-size: 16px; 112 | } 113 | .nav-item:hover .submenu{ 114 | display: block; 115 | } 116 | .nav-item>a{ 117 | text-decoration: none; 118 | color: #000; 119 | } 120 | 121 | .banner{ 122 | width: 1080px; 123 | min-height:450px; 124 | height: auto; 125 | background-color: white; 126 | margin-top: 20px; 127 | 128 | } 129 | .leftbox{ 130 | width: 200px; 131 | height: auto; 132 | } 133 | .firstbox{ 134 | margin: 0 auto; 135 | width: 200px; 136 | background:#fafafa; 137 | } 138 | .secondbox{ 139 | margin: 0 auto; 140 | width: 200px; 141 | height:200px; 142 | background:#fafafa; 143 | 144 | } 145 | .leftbox h2 { 146 | background:#fff0d9; 147 | font-size:16px; 148 | color:#853200; 149 | padding:5px 20px; 150 | } 151 | .firstbox li { 152 | font-weight:bold; 153 | padding:2px 20px; 154 | margin-top: 10px; 155 | } 156 | 157 | .firstbox li a { 158 | color:#666; 159 | text-decoration:none; 160 | } 161 | .secondbox li { 162 | margin: 5px; 163 | float: left; 164 | width: 90px; 165 | 166 | } 167 | 168 | .secondbox a { 169 | color:#666; 170 | text-decoration:none; 171 | } 172 | .secondbox img{ 173 | margin: 10px; 174 | } 175 | .sbox{ 176 | word-wrap:break-word; 177 | } 178 | #block1{ 179 | width:900px; 180 | height:350px; 181 | clear:both; 182 | margin: 10px auto; 183 | } 184 | #block1 h3{padding:30px 0px 20px 5px;} 185 | #block1 ul{list-style-type:none;margin: 10px auto;} 186 | #block1 ul li{ 187 | float:left; 188 | width: 180px; 189 | margin: 10px 20px;} 190 | #block1 img{ 191 | float:left; 192 | width: 180px; 193 | height: 120px; 194 | } 195 | #block2{ 196 | width:900px; 197 | height:350px; 198 | clear:both; 199 | margin: 10px auto;} 200 | #block2 h3{padding:30px 0px 20px 5px;} 201 | #block2 ul{list-style-type:none;margin: 10px auto;} 202 | #block2 ul li{ 203 | float:left; 204 | width: 180px; 205 | margin: 10px 20px; 206 | } 207 | #block2 img{ 208 | float:left; 209 | width: 180px; 210 | height: 250px; 211 | } 212 | .containter{ 213 | width:1080px; 214 | margin:0px auto; 215 | overflow: hidden; 216 | } 217 | .containter a{text-decoration:none;color:#333;} 218 | .containter a:hover{text-decoration:underline;color:#09F;} 219 | .footer{ 220 | padding-top: 20px; 221 | border-top: 3px solid #c31114; 222 | width:1080px; 223 | height: 35px; 224 | margin:0 auto; 225 | background-color: white; 226 | border-bottom-left-radius: 10px; 227 | border-bottom-right-radius: 10px; 228 | clear: both; 229 | 230 | 231 | } 232 | #shopping {width:1080px;} 233 | #shopping table { 234 | width:100%; 235 | line-height:24px; 236 | border-top:1px solid #666; 237 | border-bottom:1px solid #666; 238 | 239 | } 240 | #shopping table td{ 241 | font-weight:normal; 242 | padding:10px 0; 243 | border-top:1px solid #666; } 244 | 245 | #shopping table th{ 246 | font-weight:normal; 247 | padding:10px 0;} 248 | .thumb img { margin:0 10px; vertical-align:middle; } 249 | 250 | .price,.number,.delete{ text-align:center; width:150px; border-left:1px dotted #666;} 251 | .delete a{text-decoration: none;color: #666;} 252 | .number input { width:23px; height: 23px; border:0; text-align:center;} 253 | #shopping .button{ 254 | background:white; 255 | height:30px; 256 | margin-top:10px; 257 | } 258 | #shopping .button input{ 259 | padding:8px; 260 | background:#c31114; 261 | color:white; 262 | height:30px; 263 | width:150px; 264 | display:none; 265 | border:none; 266 | float:right; 267 | } 268 | .delete .button{ 269 | background:white; 270 | height:30px; 271 | margin-top:10px; 272 | } 273 | .delete .button input{ 274 | padding:8px; 275 | background:#c31114; 276 | color:white; 277 | height:15px; 278 | width:20px; 279 | display:none; 280 | border:none; 281 | float:right; 282 | } 283 | 284 | -------------------------------------------------------------------------------- /WebRoot/finshcomment.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-个人订单 9 | 10 | 32 | 33 | 34 | 35 | 36 |
37 |
38 | 43 | 49 | 50 |
51 |
52 |
53 | 56 |
57 | 58 |
59 |
60 | 61 | 62 |
63 |
64 |
65 |
66 |
67 | 74 |
75 | 76 |
77 | 116 | 119 |
120 | 121 | -------------------------------------------------------------------------------- /WebRoot/images/cloth/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/1.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/10.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/11.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/12.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/13.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/14.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/15.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/16.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/17.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/18.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/19.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/2.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/20.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/21.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/3.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/4.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/5.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/6.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/7.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/8.jpg -------------------------------------------------------------------------------- /WebRoot/images/cloth/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/cloth/9.jpg -------------------------------------------------------------------------------- /WebRoot/images/icon-user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/icon-user.png -------------------------------------------------------------------------------- /WebRoot/images/login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/login.jpg -------------------------------------------------------------------------------- /WebRoot/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/logo.jpg -------------------------------------------------------------------------------- /WebRoot/images/mima.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/WebRoot/images/mima.png -------------------------------------------------------------------------------- /WebRoot/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-首页 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 21 | 27 | 28 |
29 |
30 |
31 | 34 |
35 | 36 |
37 |
38 | 39 | 40 |
41 |
42 |
43 |
44 |
45 | 52 |
53 | 54 |
55 | 76 | 79 |
80 | 81 | -------------------------------------------------------------------------------- /WebRoot/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 登录 9 | 10 | 11 | 48 | 49 | 50 | 51 |
52 |
53 |

账号登录

54 |
55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 69 | 70 | 71 | 72 | 73 |
65 | 68 |
74 | 75 |
76 |
77 | 78 |
79 | 80 | 81 |
82 | 83 |
84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /WebRoot/order-result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-个人订单结果 9 | 10 | 27 | 36 | 37 | 38 | 39 |
40 |
41 | 46 | 52 | 53 |
54 |
55 |
56 | 59 |
60 | 61 |
62 |
63 | 64 |
65 |
66 |
67 |
68 |
69 | 76 |
77 | 78 |
79 | 91 | 92 | -------------------------------------------------------------------------------- /WebRoot/productlist.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-商品 9 | 10 | 11 | 12 | 13 |
14 |
15 | 20 | 26 | 27 |
28 |
29 |
30 | 33 |
34 | 35 |
36 |
37 | 38 | 39 |
40 |
41 |
42 |
43 |
44 | 51 |
52 | 53 |
54 | 114 |
115 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /WebRoot/proimg.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-商品详情 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 21 | 27 | 28 |
29 |
30 |
31 | 34 |
35 | 36 |
37 |
38 | 39 | 40 |
41 |
42 |
43 |
44 |
45 | 52 |
53 | 54 |
55 | 116 |
117 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /WebRoot/re-result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-注册成功 9 | 10 | 31 | 32 | 33 | 34 | 35 |
36 |
37 | 38 |
39 |

欢迎注册 宝舒会员~

40 |

注册成功!请登录

41 | 42 |
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /WebRoot/reg.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-注册 9 | 10 | 11 | 37 | 38 | 39 | 40 | 41 |
42 |
43 | 44 |
45 |

欢迎注册 宝舒会员~

46 |
47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
用户名: *
登录密码: *
确认密码: *
性别:
邮箱:
手机号码:
收货地址:
85 |
86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /WebRoot/scripts/function.js: -------------------------------------------------------------------------------- 1 |  2 | function jian(){ 3 | var count = parseInt(document.getElementById("count").value); 4 | if(count>0){ 5 | count--; 6 | } 7 | if(count==0){ 8 | count=1; 9 | } 10 | document.getElementById("count").value = count; 11 | } 12 | function jia(){ 13 | var count = parseInt(document.getElementById("count").value); 14 | var stock = parseInt(document.getElementById("stock").innerHTML); 15 | if(countstock){ 25 | alert('库存不足'); 26 | document.getElementById("count").value = stock; 27 | } 28 | if(count==0){ 29 | alert('购买数量不能小于1哦'); 30 | document.getElementById("count").value = 1; 31 | } 32 | if(count<0){ 33 | alert('数量非法'); 34 | document.getElementById("count").value = 1; 35 | } 36 | } 37 | 38 | /*加入购物车*/ 39 | function shopAdd2(idd){ 40 | var id = idd; 41 | var count = parseInt(document.getElementById("count").value); 42 | location.href='AddShopCarServlet?id='+id+'&count='+count; 43 | } 44 | 45 | function jia1(id,count,stock){ 46 | var va=count 47 | if(va>=stock){ 48 | alert('库存不足'); 49 | }else{ 50 | location.href="UpdateCarServlet?carid="+id+"&action=jia"; 51 | } 52 | 53 | } 54 | function jian1(id,count){ 55 | var va=count; 56 | if(va<2){ 57 | alert('数量不能小于1'); 58 | }else{ 59 | location.href="UpdateCarServlet?carid="+id+"&action=jian";} 60 | 61 | 62 | } 63 | function closeText(id,stock){ 64 | var va=document.getElementById(id).value; 65 | if(va<1){ 66 | alert('您输入的数量不能小于1!!!') 67 | document.getElementById(id).value=1; 68 | va=1; 69 | } 70 | if(va>=stock){ 71 | alert('您输入的数量超出库存!!!'); 72 | document.getElementById(id).value=stock; 73 | va=stock; 74 | } 75 | location.href="UpdateCarServlet?carid="+id+"&getvalue="+va+"&action=closeText"; 76 | } 77 | function del(id){ 78 | if(confirm("确定要删除吗?")) { 79 | location.href="UpdateCarServlet?carid="+id+"&action=delText"; 80 | } 81 | } 82 | function delco(id){ 83 | if(confirm("确定要删除吗?")) { 84 | location.href="DeleteCommentServlet?coid="+id; 85 | } 86 | } 87 | 88 | 89 | var fxi=0; 90 | 91 | function qxcheck(){ 92 | 93 | var op2 = document.getElementsByName("op2"); 94 | var op = document.getElementsByName("op"); 95 | 96 | if(fxi==0){ 97 | for(var i=0;i 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-购物车 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 22 | 28 | 29 |
30 |
31 |
32 | 35 |
36 | 37 |
38 |
39 | 40 | 41 |
42 |
43 |
44 |
45 |
46 | 50 |
51 | 52 |
53 | 91 | 92 |
93 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /WebRoot/usercenter.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-个人中心 9 | 10 | 11 | 12 | 13 |
14 |
15 | 20 | 26 | 27 |
28 |
29 |
30 | 33 |
34 | 35 |
36 |
37 | 38 | 39 |
40 |
41 |
42 |
43 |
44 | 50 |
51 | 52 |
53 | 74 |
75 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /WebRoot/userorder.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 8 | 前台-个人订单 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 21 | 27 | 28 |
29 |
30 |
31 | 34 |
35 | 36 |
37 |
38 | 39 | 40 |
41 |
42 |
43 |
44 |
45 | 50 |
51 | 52 |
53 | 89 |
90 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /src/AdminServlet/AFGoodsServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/AdminServlet/AFGoodsServlet.java -------------------------------------------------------------------------------- /src/AdminServlet/AddCateServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import Bean.Category; 12 | import BeanDao.CategoryDao; 13 | import BeanDao.Tools; 14 | 15 | public class AddCateServlet extends HttpServlet { 16 | 17 | /** 18 | * Constructor of the object. 19 | */ 20 | public AddCateServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | 45 | response.setContentType("text/html"); 46 | PrintWriter out = response.getWriter(); 47 | out 48 | .println(""); 49 | out.println(""); 50 | out.println(" A Servlet"); 51 | out.println(" "); 52 | out.print(" This is "); 53 | out.print(this.getClass()); 54 | out.println(", using the GET method"); 55 | out.println(" "); 56 | out.println(""); 57 | out.flush(); 58 | out.close(); 59 | } 60 | 61 | /** 62 | * The doPost method of the servlet.
63 | * 64 | * This method is called when a form has its tag value method equals to post. 65 | * 66 | * @param request the request send by the client to the server 67 | * @param response the response send by the server to the client 68 | * @throws ServletException if an error occurred 69 | * @throws IOException if an error occurred 70 | */ 71 | public void doPost(HttpServletRequest request, HttpServletResponse response) 72 | throws ServletException, IOException { 73 | response.setContentType("text/html;charset=utf-8"); 74 | 75 | String catename =Tools.codeToChiese(request.getParameter("catename")); 76 | int catebigid =Integer.parseInt(Tools.codeToChiese(request.getParameter("catebigid"))); 77 | 78 | Category cate=new Category(catename,catebigid); 79 | CategoryDao.addCate(cate); 80 | response.sendRedirect("CategoryShowServlet"); 81 | } 82 | 83 | /** 84 | * Initialization of the servlet.
85 | * 86 | * @throws ServletException if an error occurs 87 | */ 88 | public void init() throws ServletException { 89 | // Put your code here 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/AdminServlet/AddCateShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import BeanDao.CategoryDao; 14 | 15 | public class AddCateShowServlet extends HttpServlet { 16 | 17 | /** 18 | * Constructor of the object. 19 | */ 20 | public AddCateShowServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | ArrayList flist = CategoryDao.selectCatebigid(); 45 | request.setAttribute("flist", flist); 46 | request.getRequestDispatcher("admin/cateadd.jsp").forward(request, response); 47 | 48 | response.setContentType("text/html"); 49 | PrintWriter out = response.getWriter(); 50 | out 51 | .println(""); 52 | out.println(""); 53 | out.println(" A Servlet"); 54 | out.println(" "); 55 | out.print(" This is "); 56 | out.print(this.getClass()); 57 | out.println(", using the GET method"); 58 | out.println(" "); 59 | out.println(""); 60 | out.flush(); 61 | out.close(); 62 | } 63 | 64 | /** 65 | * The doPost method of the servlet.
66 | * 67 | * This method is called when a form has its tag value method equals to post. 68 | * 69 | * @param request the request send by the client to the server 70 | * @param response the response send by the server to the client 71 | * @throws ServletException if an error occurred 72 | * @throws IOException if an error occurred 73 | */ 74 | public void doPost(HttpServletRequest request, HttpServletResponse response) 75 | throws ServletException, IOException { 76 | 77 | response.setContentType("text/html"); 78 | PrintWriter out = response.getWriter(); 79 | out 80 | .println(""); 81 | out.println(""); 82 | out.println(" A Servlet"); 83 | out.println(" "); 84 | out.print(" This is "); 85 | out.print(this.getClass()); 86 | out.println(", using the POST method"); 87 | out.println(" "); 88 | out.println(""); 89 | out.flush(); 90 | out.close(); 91 | } 92 | 93 | /** 94 | * Initialization of the servlet.
95 | * 96 | * @throws ServletException if an error occurs 97 | */ 98 | public void init() throws ServletException { 99 | // Put your code here 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/AdminServlet/AddProductShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import BeanDao.CategoryDao; 14 | 15 | public class AddProductShowServlet extends HttpServlet { 16 | 17 | /** 18 | * Constructor of the object. 19 | */ 20 | public AddProductShowServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | ArrayList flist = CategoryDao.selectCatebigid(); 45 | request.setAttribute("flist", flist); 46 | ArrayList clist = CategoryDao.selectCatechildid(); 47 | request.setAttribute("clist", clist); 48 | 49 | request.getRequestDispatcher("admin/productadd.jsp").forward(request, response); 50 | response.setContentType("text/html"); 51 | PrintWriter out = response.getWriter(); 52 | out 53 | .println(""); 54 | out.println(""); 55 | out.println(" A Servlet"); 56 | out.println(" "); 57 | out.print(" This is "); 58 | out.print(this.getClass()); 59 | out.println(", using the GET method"); 60 | out.println(" "); 61 | out.println(""); 62 | out.flush(); 63 | out.close(); 64 | } 65 | 66 | /** 67 | * The doPost method of the servlet.
68 | * 69 | * This method is called when a form has its tag value method equals to post. 70 | * 71 | * @param request the request send by the client to the server 72 | * @param response the response send by the server to the client 73 | * @throws ServletException if an error occurred 74 | * @throws IOException if an error occurred 75 | */ 76 | public void doPost(HttpServletRequest request, HttpServletResponse response) 77 | throws ServletException, IOException { 78 | 79 | response.setContentType("text/html"); 80 | PrintWriter out = response.getWriter(); 81 | out 82 | .println(""); 83 | out.println(""); 84 | out.println(" A Servlet"); 85 | out.println(" "); 86 | out.print(" This is "); 87 | out.print(this.getClass()); 88 | out.println(", using the POST method"); 89 | out.println(" "); 90 | out.println(""); 91 | out.flush(); 92 | out.close(); 93 | } 94 | 95 | /** 96 | * Initialization of the servlet.
97 | * 98 | * @throws ServletException if an error occurs 99 | */ 100 | public void init() throws ServletException { 101 | // Put your code here 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /src/AdminServlet/CateDetailShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import BeanDao.CategoryDao; 14 | 15 | 16 | 17 | public class CateDetailShowServlet extends HttpServlet { 18 | 19 | /** 20 | * Constructor of the object. 21 | */ 22 | public CateDetailShowServlet() { 23 | super(); 24 | } 25 | 26 | /** 27 | * Destruction of the servlet.
28 | */ 29 | public void destroy() { 30 | super.destroy(); // Just puts "destroy" string in log 31 | // Put your code here 32 | } 33 | 34 | /** 35 | * The doGet method of the servlet.
36 | * 37 | * This method is called when a form has its tag value method equals to get. 38 | * 39 | * @param request the request send by the client to the server 40 | * @param response the response send by the server to the client 41 | * @throws ServletException if an error occurred 42 | * @throws IOException if an error occurred 43 | */ 44 | public void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | 47 | String cateid=request.getParameter("cateid"); 48 | Category cate=CategoryDao.selectById(Integer.parseInt(cateid)); 49 | request.setAttribute("cate", cate); 50 | 51 | ArrayList flist = CategoryDao.selectCatebigid(); 52 | request.setAttribute("flist", flist); 53 | request.getRequestDispatcher("admin/catemodify.jsp").forward(request, response); 54 | } 55 | 56 | /** 57 | * The doPost method of the servlet.
58 | * 59 | * This method is called when a form has its tag value method equals to post. 60 | * 61 | * @param request the request send by the client to the server 62 | * @param response the response send by the server to the client 63 | * @throws ServletException if an error occurred 64 | * @throws IOException if an error occurred 65 | */ 66 | public void doPost(HttpServletRequest request, HttpServletResponse response) 67 | throws ServletException, IOException { 68 | 69 | response.setContentType("text/html"); 70 | PrintWriter out = response.getWriter(); 71 | out 72 | .println(""); 73 | out.println(""); 74 | out.println(" A Servlet"); 75 | out.println(" "); 76 | out.print(" This is "); 77 | out.print(this.getClass()); 78 | out.println(", using the POST method"); 79 | out.println(" "); 80 | out.println(""); 81 | out.flush(); 82 | out.close(); 83 | } 84 | 85 | /** 86 | * Initialization of the servlet.
87 | * 88 | * @throws ServletException if an error occurs 89 | */ 90 | public void init() throws ServletException { 91 | // Put your code here 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/AdminServlet/CategoryShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import BeanDao.CategoryDao; 14 | 15 | public class CategoryShowServlet extends HttpServlet { 16 | 17 | /** 18 | * Constructor of the object. 19 | */ 20 | public CategoryShowServlet() { 21 | super(); 22 | } 23 | 24 | /** 25 | * Destruction of the servlet.
26 | */ 27 | public void destroy() { 28 | super.destroy(); // Just puts "destroy" string in log 29 | // Put your code here 30 | } 31 | 32 | /** 33 | * The doGet method of the servlet.
34 | * 35 | * This method is called when a form has its tag value method equals to get. 36 | * 37 | * @param request the request send by the client to the server 38 | * @param response the response send by the server to the client 39 | * @throws ServletException if an error occurred 40 | * @throws IOException if an error occurred 41 | */ 42 | public void doGet(HttpServletRequest request, HttpServletResponse response) 43 | throws ServletException, IOException { 44 | int cpage=1; 45 | int count=5; 46 | String cp=request.getParameter("cp"); 47 | if(cp!=null){ 48 | cpage=Integer.parseInt(cp); 49 | } 50 | int tpage=CategoryDao.totalPage(count); 51 | ArrayList list=CategoryDao.selectAll(cpage,count); 52 | 53 | ArrayList flist = CategoryDao.selectCatebigid(); 54 | request.setAttribute("flist", flist); 55 | request.setAttribute("catelist", list); 56 | 57 | request.setAttribute("cpage", cpage); 58 | request.setAttribute("tpage", tpage); 59 | request.getRequestDispatcher("admin/category.jsp").forward(request, response); 60 | } 61 | 62 | /** 63 | * The doPost method of the servlet.
64 | * 65 | * This method is called when a form has its tag value method equals to post. 66 | * 67 | * @param request the request send by the client to the server 68 | * @param response the response send by the server to the client 69 | * @throws ServletException if an error occurred 70 | * @throws IOException if an error occurred 71 | */ 72 | public void doPost(HttpServletRequest request, HttpServletResponse response) 73 | throws ServletException, IOException { 74 | 75 | response.setContentType("text/html"); 76 | PrintWriter out = response.getWriter(); 77 | out 78 | .println(""); 79 | out.println(""); 80 | out.println(" A Servlet"); 81 | out.println(" "); 82 | out.print(" This is "); 83 | out.print(this.getClass()); 84 | out.println(", using the POST method"); 85 | out.println(" "); 86 | out.println(""); 87 | out.flush(); 88 | out.close(); 89 | } 90 | 91 | /** 92 | * Initialization of the servlet.
93 | * 94 | * @throws ServletException if an error occurs 95 | */ 96 | public void init() throws ServletException { 97 | // Put your code here 98 | } 99 | 100 | } 101 | -------------------------------------------------------------------------------- /src/AdminServlet/CommentShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Comment; 13 | import BeanDao.CommentDao; 14 | 15 | 16 | public class CommentShowServlet extends HttpServlet { 17 | 18 | /** 19 | * Constructor of the object. 20 | */ 21 | public CommentShowServlet() { 22 | super(); 23 | } 24 | 25 | /** 26 | * Destruction of the servlet.
27 | */ 28 | public void destroy() { 29 | super.destroy(); // Just puts "destroy" string in log 30 | // Put your code here 31 | } 32 | 33 | /** 34 | * The doGet method of the servlet.
35 | * 36 | * This method is called when a form has its tag value method equals to get. 37 | * 38 | * @param request the request send by the client to the server 39 | * @param response the response send by the server to the client 40 | * @throws ServletException if an error occurred 41 | * @throws IOException if an error occurred 42 | */ 43 | public void doGet(HttpServletRequest request, HttpServletResponse response) 44 | throws ServletException, IOException { 45 | 46 | int cpage=1; 47 | int count=5; 48 | String cp=request.getParameter("cp"); 49 | if(cp!=null){ 50 | cpage=Integer.parseInt(cp); 51 | } 52 | int tpage=CommentDao.totalPage(count); 53 | ArrayList list=CommentDao.selectAll(cpage,count); 54 | request.setAttribute("colist", list); 55 | request.setAttribute("cpage", cpage); 56 | request.setAttribute("tpage", tpage); 57 | request.getRequestDispatcher("admin/comment.jsp").forward(request, response); 58 | } 59 | 60 | /** 61 | * The doPost method of the servlet.
62 | * 63 | * This method is called when a form has its tag value method equals to post. 64 | * 65 | * @param request the request send by the client to the server 66 | * @param response the response send by the server to the client 67 | * @throws ServletException if an error occurred 68 | * @throws IOException if an error occurred 69 | */ 70 | public void doPost(HttpServletRequest request, HttpServletResponse response) 71 | throws ServletException, IOException { 72 | 73 | response.setContentType("text/html"); 74 | PrintWriter out = response.getWriter(); 75 | out 76 | .println(""); 77 | out.println(""); 78 | out.println(" A Servlet"); 79 | out.println(" "); 80 | out.print(" This is "); 81 | out.print(this.getClass()); 82 | out.println(", using the POST method"); 83 | out.println(" "); 84 | out.println(""); 85 | out.flush(); 86 | out.close(); 87 | } 88 | 89 | /** 90 | * Initialization of the servlet.
91 | * 92 | * @throws ServletException if an error occurs 93 | */ 94 | public void init() throws ServletException { 95 | // Put your code here 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/AdminServlet/DCateServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import BeanDao.CategoryDao; 12 | public class DCateServlet extends HttpServlet { 13 | 14 | /** 15 | * Constructor of the object. 16 | */ 17 | public DCateServlet() { 18 | super(); 19 | } 20 | 21 | /** 22 | * Destruction of the servlet.
23 | */ 24 | public void destroy() { 25 | super.destroy(); // Just puts "destroy" string in log 26 | // Put your code here 27 | } 28 | 29 | /** 30 | * The doGet method of the servlet.
31 | * 32 | * This method is called when a form has its tag value method equals to get. 33 | * 34 | * @param request the request send by the client to the server 35 | * @param response the response send by the server to the client 36 | * @throws ServletException if an error occurred 37 | * @throws IOException if an error occurred 38 | */ 39 | public void doGet(HttpServletRequest request, HttpServletResponse response) 40 | throws ServletException, IOException { 41 | 42 | String cateid = request.getParameter("cateid"); 43 | int count = CategoryDao.deleteCategory(Integer.parseInt(cateid)); 44 | if(count>0){ 45 | request.getRequestDispatcher("CategoryShowServlet").forward(request, response); 46 | } 47 | 48 | response.setContentType("text/html"); 49 | PrintWriter out = response.getWriter(); 50 | out 51 | .println(""); 52 | out.println(""); 53 | out.println(" A Servlet"); 54 | out.println(" "); 55 | out.print(" This is "); 56 | out.print(this.getClass()); 57 | out.println(", using the GET method"); 58 | out.println(" "); 59 | out.println(""); 60 | out.flush(); 61 | out.close(); 62 | } 63 | 64 | /** 65 | * The doPost method of the servlet.
66 | * 67 | * This method is called when a form has its tag value method equals to post. 68 | * 69 | * @param request the request send by the client to the server 70 | * @param response the response send by the server to the client 71 | * @throws ServletException if an error occurred 72 | * @throws IOException if an error occurred 73 | */ 74 | public void doPost(HttpServletRequest request, HttpServletResponse response) 75 | throws ServletException, IOException { 76 | 77 | response.setContentType("text/html"); 78 | PrintWriter out = response.getWriter(); 79 | out 80 | .println(""); 81 | out.println(""); 82 | out.println(" A Servlet"); 83 | out.println(" "); 84 | out.print(" This is "); 85 | out.print(this.getClass()); 86 | out.println(", using the POST method"); 87 | out.println(" "); 88 | out.println(""); 89 | out.flush(); 90 | out.close(); 91 | } 92 | 93 | /** 94 | * Initialization of the servlet.
95 | * 96 | * @throws ServletException if an error occurs 97 | */ 98 | public void init() throws ServletException { 99 | // Put your code here 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/AdminServlet/DProductServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import BeanDao.CategoryDao; 12 | import BeanDao.ProductDao; 13 | 14 | public class DProductServlet extends HttpServlet { 15 | 16 | /** 17 | * Constructor of the object. 18 | */ 19 | public DProductServlet() { 20 | super(); 21 | } 22 | 23 | /** 24 | * Destruction of the servlet.
25 | */ 26 | public void destroy() { 27 | super.destroy(); // Just puts "destroy" string in log 28 | // Put your code here 29 | } 30 | 31 | /** 32 | * The doGet method of the servlet.
33 | * 34 | * This method is called when a form has its tag value method equals to get. 35 | * 36 | * @param request the request send by the client to the server 37 | * @param response the response send by the server to the client 38 | * @throws ServletException if an error occurred 39 | * @throws IOException if an error occurred 40 | */ 41 | public void doGet(HttpServletRequest request, HttpServletResponse response) 42 | throws ServletException, IOException { 43 | 44 | String proid = request.getParameter("proid"); 45 | int count = ProductDao.deleteProduct(Integer.parseInt(proid)); 46 | if(count>0){ 47 | request.getRequestDispatcher("ProductShowServlet").forward(request, response); 48 | } 49 | 50 | response.setContentType("text/html"); 51 | PrintWriter out = response.getWriter(); 52 | out 53 | .println(""); 54 | out.println(""); 55 | out.println(" A Servlet"); 56 | out.println(" "); 57 | out.print(" This is "); 58 | out.print(this.getClass()); 59 | out.println(", using the GET method"); 60 | out.println(" "); 61 | out.println(""); 62 | out.flush(); 63 | out.close(); 64 | } 65 | 66 | /** 67 | * The doPost method of the servlet.
68 | * 69 | * This method is called when a form has its tag value method equals to post. 70 | * 71 | * @param request the request send by the client to the server 72 | * @param response the response send by the server to the client 73 | * @throws ServletException if an error occurred 74 | * @throws IOException if an error occurred 75 | */ 76 | public void doPost(HttpServletRequest request, HttpServletResponse response) 77 | throws ServletException, IOException { 78 | String proid= request.getParameter("proid"); 79 | int count = ProductDao.deleteProduct(Integer.parseInt(proid)); 80 | if(count>0){ 81 | request.getRequestDispatcher("ProductShowServlet").forward(request, response); 82 | } 83 | response.setContentType("text/html"); 84 | PrintWriter out = response.getWriter(); 85 | out 86 | .println(""); 87 | out.println(""); 88 | out.println(" A Servlet"); 89 | out.println(" "); 90 | out.print(" This is "); 91 | out.print(this.getClass()); 92 | out.println(", using the POST method"); 93 | out.println(" "); 94 | out.println(""); 95 | out.flush(); 96 | out.close(); 97 | } 98 | 99 | /** 100 | * Initialization of the servlet.
101 | * 102 | * @throws ServletException if an error occurs 103 | */ 104 | public void init() throws ServletException { 105 | // Put your code here 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /src/AdminServlet/ModifyCateServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | import Bean.Category; 13 | import BeanDao.CategoryDao; 14 | import BeanDao.Tools; 15 | 16 | public class ModifyCateServlet extends HttpServlet { 17 | 18 | /** 19 | * Constructor of the object. 20 | */ 21 | public ModifyCateServlet() { 22 | super(); 23 | } 24 | 25 | /** 26 | * Destruction of the servlet.
27 | */ 28 | public void destroy() { 29 | super.destroy(); // Just puts "destroy" string in log 30 | // Put your code here 31 | } 32 | 33 | /** 34 | * The doGet method of the servlet.
35 | * 36 | * This method is called when a form has its tag value method equals to get. 37 | * 38 | * @param request the request send by the client to the server 39 | * @param response the response send by the server to the client 40 | * @throws ServletException if an error occurred 41 | * @throws IOException if an error occurred 42 | */ 43 | public void doGet(HttpServletRequest request, HttpServletResponse response) 44 | throws ServletException, IOException { 45 | 46 | } 47 | 48 | /** 49 | * The doPost method of the servlet.
50 | * 51 | * This method is called when a form has its tag value method equals to post. 52 | * 53 | * @param request the request send by the client to the server 54 | * @param response the response send by the server to the client 55 | * @throws ServletException if an error occurred 56 | * @throws IOException if an error occurred 57 | */ 58 | public void doPost(HttpServletRequest request, HttpServletResponse response) 59 | throws ServletException, IOException { 60 | response.setContentType("text/html;charset=utf-8"); 61 | int cateid=Integer.parseInt(Tools.codeToChiese((request.getParameter("cateid")))); 62 | String catename =Tools.codeToChiese((request.getParameter("catename"))); 63 | int catebigid = Integer.parseInt(Tools.codeToChiese((request.getParameter("catebigid")))); 64 | 65 | Category cate=new Category(cateid,catename,catebigid); 66 | CategoryDao.updateCate(cate); 67 | response.sendRedirect("CategoryShowServlet"); 68 | } 69 | 70 | /** 71 | * Initialization of the servlet.
72 | * 73 | * @throws ServletException if an error occurs 74 | */ 75 | public void init() throws ServletException { 76 | // Put your code here 77 | } 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/AdminServlet/ModifyProductServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/AdminServlet/ModifyProductServlet.java -------------------------------------------------------------------------------- /src/AdminServlet/OrderDetailShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.OrderDetail; 13 | import Bean.User; 14 | import BeanDao.OrderDetailDao; 15 | import BeanDao.UserDao; 16 | 17 | 18 | 19 | public class OrderDetailShowServlet extends HttpServlet { 20 | 21 | /** 22 | * Constructor of the object. 23 | */ 24 | public OrderDetailShowServlet() { 25 | super(); 26 | } 27 | 28 | /** 29 | * Destruction of the servlet.
30 | */ 31 | public void destroy() { 32 | super.destroy(); // Just puts "destroy" string in log 33 | // Put your code here 34 | } 35 | 36 | /** 37 | * The doGet method of the servlet.
38 | * 39 | * This method is called when a form has its tag value method equals to get. 40 | * 41 | * @param request the request send by the client to the server 42 | * @param response the response send by the server to the client 43 | * @throws ServletException if an error occurred 44 | * @throws IOException if an error occurred 45 | */ 46 | public void doGet(HttpServletRequest request, HttpServletResponse response) 47 | throws ServletException, IOException { 48 | 49 | String oid=request.getParameter("o"); 50 | ArrayList odlist=OrderDetailDao.selectById(Integer.parseInt(oid)); 51 | request.setAttribute("odlist", odlist); 52 | request.getRequestDispatcher("admin/orderdetail.jsp").forward(request, response); 53 | } 54 | 55 | /** 56 | * The doPost method of the servlet.
57 | * 58 | * This method is called when a form has its tag value method equals to post. 59 | * 60 | * @param request the request send by the client to the server 61 | * @param response the response send by the server to the client 62 | * @throws ServletException if an error occurred 63 | * @throws IOException if an error occurred 64 | */ 65 | public void doPost(HttpServletRequest request, HttpServletResponse response) 66 | throws ServletException, IOException { 67 | 68 | response.setContentType("text/html"); 69 | PrintWriter out = response.getWriter(); 70 | out 71 | .println(""); 72 | out.println(""); 73 | out.println(" A Servlet"); 74 | out.println(" "); 75 | out.print(" This is "); 76 | out.print(this.getClass()); 77 | out.println(", using the POST method"); 78 | out.println(" "); 79 | out.println(""); 80 | out.flush(); 81 | out.close(); 82 | } 83 | 84 | /** 85 | * Initialization of the servlet.
86 | * 87 | * @throws ServletException if an error occurs 88 | */ 89 | public void init() throws ServletException { 90 | // Put your code here 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/AdminServlet/OrderShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import Bean.Order; 14 | import BeanDao.CategoryDao; 15 | import BeanDao.OrderDao; 16 | 17 | public class OrderShowServlet extends HttpServlet { 18 | 19 | /** 20 | * Constructor of the object. 21 | */ 22 | public OrderShowServlet() { 23 | super(); 24 | } 25 | 26 | /** 27 | * Destruction of the servlet.
28 | */ 29 | public void destroy() { 30 | super.destroy(); // Just puts "destroy" string in log 31 | // Put your code here 32 | } 33 | 34 | /** 35 | * The doGet method of the servlet.
36 | * 37 | * This method is called when a form has its tag value method equals to get. 38 | * 39 | * @param request the request send by the client to the server 40 | * @param response the response send by the server to the client 41 | * @throws ServletException if an error occurred 42 | * @throws IOException if an error occurred 43 | */ 44 | public void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | int cpage=1; 47 | int count=5; 48 | String cp=request.getParameter("cp"); 49 | if(cp!=null){ 50 | cpage=Integer.parseInt(cp); 51 | } 52 | int tpage=OrderDao.totalPage(count); 53 | ArrayList list=OrderDao.selectAll(cpage,count); 54 | request.setAttribute("orderlist", list); 55 | request.setAttribute("cpage", cpage); 56 | request.setAttribute("tpage", tpage); 57 | request.getRequestDispatcher("admin/order.jsp").forward(request, response); 58 | } 59 | 60 | /** 61 | * The doPost method of the servlet.
62 | * 63 | * This method is called when a form has its tag value method equals to post. 64 | * 65 | * @param request the request send by the client to the server 66 | * @param response the response send by the server to the client 67 | * @throws ServletException if an error occurred 68 | * @throws IOException if an error occurred 69 | */ 70 | public void doPost(HttpServletRequest request, HttpServletResponse response) 71 | throws ServletException, IOException { 72 | 73 | response.setContentType("text/html"); 74 | PrintWriter out = response.getWriter(); 75 | out 76 | .println(""); 77 | out.println(""); 78 | out.println(" A Servlet"); 79 | out.println(" "); 80 | out.print(" This is "); 81 | out.print(this.getClass()); 82 | out.println(", using the POST method"); 83 | out.println(" "); 84 | out.println(""); 85 | out.flush(); 86 | out.close(); 87 | } 88 | 89 | /** 90 | * Initialization of the servlet.
91 | * 92 | * @throws ServletException if an error occurs 93 | */ 94 | public void init() throws ServletException { 95 | // Put your code here 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/AdminServlet/ProDetailShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import Bean.Product; 14 | import BeanDao.CategoryDao; 15 | import BeanDao.ProductDao; 16 | 17 | public class ProDetailShowServlet extends HttpServlet { 18 | 19 | /** 20 | * Constructor of the object. 21 | */ 22 | public ProDetailShowServlet() { 23 | super(); 24 | } 25 | 26 | /** 27 | * Destruction of the servlet.
28 | */ 29 | public void destroy() { 30 | super.destroy(); // Just puts "destroy" string in log 31 | // Put your code here 32 | } 33 | 34 | /** 35 | * The doGet method of the servlet.
36 | * 37 | * This method is called when a form has its tag value method equals to get. 38 | * 39 | * @param request the request send by the client to the server 40 | * @param response the response send by the server to the client 41 | * @throws ServletException if an error occurred 42 | * @throws IOException if an error occurred 43 | */ 44 | public void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | 47 | String proid=request.getParameter("proid"); 48 | Product pro=ProductDao.selectById(Integer.parseInt(proid)); 49 | request.setAttribute("pro", pro); 50 | 51 | ArrayList flist = CategoryDao.selectCatebigid(); 52 | request.setAttribute("flist", flist); 53 | ArrayList clist = CategoryDao.selectCatechildid(); 54 | request.setAttribute("clist", clist); 55 | 56 | request.getRequestDispatcher("admin/productmodify.jsp").forward(request, response); 57 | } 58 | 59 | /** 60 | * The doPost method of the servlet.
61 | * 62 | * This method is called when a form has its tag value method equals to post. 63 | * 64 | * @param request the request send by the client to the server 65 | * @param response the response send by the server to the client 66 | * @throws ServletException if an error occurred 67 | * @throws IOException if an error occurred 68 | */ 69 | public void doPost(HttpServletRequest request, HttpServletResponse response) 70 | throws ServletException, IOException { 71 | 72 | response.setContentType("text/html"); 73 | PrintWriter out = response.getWriter(); 74 | out 75 | .println(""); 76 | out.println(""); 77 | out.println(" A Servlet"); 78 | out.println(" "); 79 | out.print(" This is "); 80 | out.print(this.getClass()); 81 | out.println(", using the POST method"); 82 | out.println(" "); 83 | out.println(""); 84 | out.flush(); 85 | out.close(); 86 | } 87 | 88 | /** 89 | * Initialization of the servlet.
90 | * 91 | * @throws ServletException if an error occurs 92 | */ 93 | public void init() throws ServletException { 94 | // Put your code here 95 | } 96 | 97 | } 98 | -------------------------------------------------------------------------------- /src/AdminServlet/ProductAddServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/AdminServlet/ProductAddServlet.java -------------------------------------------------------------------------------- /src/AdminServlet/ProductShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Category; 13 | import Bean.Product; 14 | import BeanDao.CategoryDao; 15 | import BeanDao.ProductDao; 16 | 17 | public class ProductShowServlet extends HttpServlet { 18 | 19 | /** 20 | * Constructor of the object. 21 | */ 22 | public ProductShowServlet() { 23 | super(); 24 | } 25 | 26 | /** 27 | * Destruction of the servlet.
28 | */ 29 | public void destroy() { 30 | super.destroy(); // Just puts "destroy" string in log 31 | // Put your code here 32 | } 33 | 34 | /** 35 | * The doGet method of the servlet.
36 | * 37 | * This method is called when a form has its tag value method equals to get. 38 | * 39 | * @param request the request send by the client to the server 40 | * @param response the response send by the server to the client 41 | * @throws ServletException if an error occurred 42 | * @throws IOException if an error occurred 43 | */ 44 | public void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | int cpage=1; 47 | int count=5; 48 | String cp=request.getParameter("cp"); 49 | if(cp!=null){ 50 | cpage=Integer.parseInt(cp); 51 | } 52 | int tpage=ProductDao.totalPage(count); 53 | ArrayList list=ProductDao.selectAll(cpage,count); 54 | 55 | ArrayList clist = CategoryDao.selectCatechildid(); 56 | request.setAttribute("clist", clist); 57 | 58 | request.setAttribute("productlist", list); 59 | request.setAttribute("cpage", cpage); 60 | request.setAttribute("tpage", tpage); 61 | request.getRequestDispatcher("admin/product.jsp").forward(request, response); 62 | } 63 | 64 | /** 65 | * The doPost method of the servlet.
66 | * 67 | * This method is called when a form has its tag value method equals to post. 68 | * 69 | * @param request the request send by the client to the server 70 | * @param response the response send by the server to the client 71 | * @throws ServletException if an error occurred 72 | * @throws IOException if an error occurred 73 | */ 74 | public void doPost(HttpServletRequest request, HttpServletResponse response) 75 | throws ServletException, IOException { 76 | 77 | int cpage=1; 78 | int count=10; 79 | String cp=request.getParameter("cp"); 80 | if(cp!=null){ 81 | cpage=Integer.parseInt(cp); 82 | } 83 | int tpage=ProductDao.totalPage(count); 84 | ArrayList list=ProductDao.selectAll(cpage,count); 85 | 86 | ArrayList clist = CategoryDao.selectCatechildid(); 87 | request.setAttribute("clist", clist); 88 | 89 | request.setAttribute("productlist", list); 90 | request.setAttribute("cpage", cpage); 91 | request.setAttribute("tpage", tpage); 92 | request.getRequestDispatcher("admin/product.jsp").forward(request, response); 93 | } 94 | 95 | /** 96 | * Initialization of the servlet.
97 | * 98 | * @throws ServletException if an error occurs 99 | */ 100 | public void init() throws ServletException { 101 | // Put your code here 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /src/AdminServlet/SaleServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.text.SimpleDateFormat; 6 | import java.util.ArrayList; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | 13 | import Bean.Order; 14 | import BeanDao.OrderDao; 15 | import BeanDao.Tools; 16 | 17 | public class SaleServlet extends HttpServlet { 18 | 19 | /** 20 | * Constructor of the object. 21 | */ 22 | public SaleServlet() { 23 | super(); 24 | } 25 | 26 | /** 27 | * Destruction of the servlet.
28 | */ 29 | public void destroy() { 30 | super.destroy(); // Just puts "destroy" string in log 31 | // Put your code here 32 | } 33 | 34 | /** 35 | * The doGet method of the servlet.
36 | * 37 | * This method is called when a form has its tag value method equals to get. 38 | * 39 | * @param request the request send by the client to the server 40 | * @param response the response send by the server to the client 41 | * @throws ServletException if an error occurred 42 | * @throws IOException if an error occurred 43 | */ 44 | public void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | response.setContentType("text/html"); 47 | PrintWriter out = response.getWriter(); 48 | out 49 | .println(""); 50 | out.println(""); 51 | out.println(" A Servlet"); 52 | out.println(" "); 53 | out.print(" This is "); 54 | out.print(this.getClass()); 55 | out.println(", using the GET method"); 56 | out.println(" "); 57 | out.println(""); 58 | out.flush(); 59 | out.close(); 60 | } 61 | 62 | /** 63 | * The doPost method of the servlet.
64 | * 65 | * This method is called when a form has its tag value method equals to post. 66 | * 67 | * @param request the request send by the client to the server 68 | * @param response the response send by the server to the client 69 | * @throws ServletException if an error occurred 70 | * @throws IOException if an error occurred 71 | */ 72 | public void doPost(HttpServletRequest request, HttpServletResponse response) 73 | throws ServletException, IOException { 74 | String sdate=Tools.codeToChiese(request.getParameter("sdate")); 75 | String edate=Tools.codeToChiese(request.getParameter("edate")); 76 | int sale=-1; 77 | sale=OrderDao.selectSale(sdate,edate); 78 | request.setAttribute("sale",sale); 79 | request.setAttribute("sdate",sdate); 80 | request.setAttribute("edate",edate); 81 | request.getRequestDispatcher("admin/saleshow.jsp").forward(request, response); 82 | response.setContentType("text/html"); 83 | PrintWriter out = response.getWriter(); 84 | out 85 | .println(""); 86 | out.println(""); 87 | out.println(" A Servlet"); 88 | out.println(" "); 89 | out.print(" This is "); 90 | out.print(this.getClass()); 91 | out.println(", using the POST method"); 92 | out.println(" "); 93 | out.println(""); 94 | out.flush(); 95 | out.close(); 96 | } 97 | 98 | /** 99 | * Initialization of the servlet.
100 | * 101 | * @throws ServletException if an error occurs 102 | */ 103 | public void init() throws ServletException { 104 | // Put your code here 105 | } 106 | 107 | } 108 | -------------------------------------------------------------------------------- /src/AdminServlet/UpdateAdminServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/AdminServlet/UpdateAdminServlet.java -------------------------------------------------------------------------------- /src/AdminServlet/UserShowServlet.java: -------------------------------------------------------------------------------- 1 | package AdminServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.RequestDispatcher; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import BeanDao.Tools; 15 | import BeanDao.UserDao; 16 | import Bean.User; 17 | 18 | 19 | public class UserShowServlet extends HttpServlet { 20 | 21 | /** 22 | * Constructor of the object. 23 | */ 24 | public UserShowServlet() { 25 | super(); 26 | } 27 | 28 | /** 29 | * Destruction of the servlet.
30 | */ 31 | public void destroy() { 32 | super.destroy(); // Just puts "destroy" string in log 33 | // Put your code here 34 | } 35 | 36 | /** 37 | * The doGet method of the servlet.
38 | * 39 | * This method is called when a form has its tag value method equals to get. 40 | * 41 | * @param request the request send by the client to the server 42 | * @param response the response send by the server to the client 43 | * @throws ServletException if an error occurred 44 | * @throws IOException if an error occurred 45 | */ 46 | public void doGet(HttpServletRequest request, HttpServletResponse response) 47 | throws ServletException, IOException { 48 | int cpage=1; 49 | int count=5; 50 | String cp=request.getParameter("cp"); 51 | if(cp!=null){ 52 | cpage=Integer.parseInt(cp); 53 | } 54 | int tpage=UserDao.totalPage(count); 55 | ArrayList list=UserDao.selectAll(cpage,count); 56 | request.setAttribute("userlist", list); 57 | request.setAttribute("cpage", cpage); 58 | request.setAttribute("tpage", tpage); 59 | request.getRequestDispatcher("admin/user.jsp").forward(request, response); 60 | 61 | } 62 | 63 | /** 64 | * The doPost method of the servlet.
65 | * 66 | * This method is called when a form has its tag value method equals to post. 67 | * 68 | * @param request the request send by the client to the server 69 | * @param response the response send by the server to the client 70 | * @throws ServletException if an error occurred 71 | * @throws IOException if an error occurred 72 | */ 73 | public void doPost(HttpServletRequest request, HttpServletResponse response) 74 | throws ServletException, IOException { 75 | 76 | response.setContentType("text/html"); 77 | PrintWriter out = response.getWriter(); 78 | out 79 | .println(""); 80 | out.println(""); 81 | out.println(" A Servlet"); 82 | out.println(" "); 83 | out.print(" This is "); 84 | out.print(this.getClass()); 85 | out.println(", using the POST method"); 86 | out.println(" "); 87 | out.println(""); 88 | out.flush(); 89 | out.close(); 90 | } 91 | 92 | /** 93 | * Initialization of the servlet.
94 | * 95 | * @throws ServletException if an error occurs 96 | */ 97 | public void init() throws ServletException { 98 | // Put your code here 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /src/Bean/Car.java: -------------------------------------------------------------------------------- 1 | package Bean; 2 | 3 | public class Car { 4 | 5 | public int carid; 6 | public String propname; 7 | public String proname; 8 | public int proprice; 9 | public int procount; 10 | public int prostock; 11 | public int proid; 12 | public int userid; 13 | public int buyend; 14 | 15 | public int getCarid() { 16 | return carid; 17 | } 18 | public void setCarid(int carid) { 19 | this.carid = carid; 20 | } 21 | public String getPropname() { 22 | return propname; 23 | } 24 | public void setPropname(String propname) { 25 | this.propname = propname; 26 | } 27 | public String getProname() { 28 | return proname; 29 | } 30 | public void setProname(String proname) { 31 | this.proname = proname; 32 | } 33 | public int getProprice() { 34 | return proprice; 35 | } 36 | public void setProprice(int proprice) { 37 | this.proprice = proprice; 38 | } 39 | public int getProcount() { 40 | return procount; 41 | } 42 | public void setProcount(int procount) { 43 | this.procount = procount; 44 | } 45 | public int getProstock() { 46 | return prostock; 47 | } 48 | public void setProstock(int prostock) { 49 | this.prostock = prostock; 50 | } 51 | public int getProid() { 52 | return proid; 53 | } 54 | public void setProid(int proid) { 55 | this.proid = proid; 56 | } 57 | public int getUserid() { 58 | return userid; 59 | } 60 | public void setUserid(int userid) { 61 | this.userid = userid; 62 | } 63 | public int getBuyend() { 64 | return buyend; 65 | } 66 | public void setBuyend(int buyend) { 67 | this.buyend = buyend; 68 | } 69 | 70 | 71 | public Car(int acarid, String apropname, String aproname, 72 | int aproprice, int aprocount, int aprostock,int aproid, 73 | int auserid, int abuyend) { 74 | super(); 75 | carid=acarid; 76 | propname=apropname; 77 | proname=aproname; 78 | proprice=aproprice; 79 | procount=aprocount; 80 | prostock =aprostock; 81 | proid=aproid; 82 | userid =auserid; 83 | buyend=abuyend; 84 | } 85 | public Car(String apropname, String aproname, 86 | int aproprice, int aprocount, int aprostock, 87 | int auserid, int abuyend) { 88 | super(); 89 | 90 | propname=apropname; 91 | proname=aproname; 92 | proprice=aproprice; 93 | procount=aprocount; 94 | prostock =aprostock; 95 | userid =auserid; 96 | buyend=abuyend; 97 | } 98 | public Car(int acarid, int aprocount) { 99 | super(); 100 | carid=acarid; 101 | procount=aprocount; 102 | 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /src/Bean/Category.java: -------------------------------------------------------------------------------- 1 | package Bean; 2 | 3 | public class Category { 4 | private int cateid; 5 | private String catename; 6 | private int catebigid; 7 | 8 | 9 | public int getCateid() { 10 | return cateid; 11 | } 12 | public void setCateid(int cateid) { 13 | this.cateid = cateid; 14 | } 15 | public String getCatename() { 16 | return catename; 17 | } 18 | public void setCatename(String catename) { 19 | this.catename = catename; 20 | } 21 | public int getCatebigid() { 22 | return catebigid; 23 | } 24 | public void setCatebigid(int catebigid) { 25 | this.catebigid = catebigid; 26 | } 27 | public Category(int acateid, String acatename, int acatebigid){ 28 | super(); 29 | cateid=acateid; 30 | catename=acatename; 31 | catebigid=acatebigid; 32 | } 33 | public Category(int acateid, String acatename){ 34 | super(); 35 | cateid=acateid; 36 | catename=acatename; 37 | } 38 | public Category(String acatename, int acatebigid){ 39 | super(); 40 | catename=acatename; 41 | catebigid=acatebigid; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/Bean/Chart.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/Bean/Chart.java -------------------------------------------------------------------------------- /src/Bean/Comment.java: -------------------------------------------------------------------------------- 1 | package Bean; 2 | 3 | public class Comment { 4 | public int coid; 5 | public int otid; 6 | public String codetail; 7 | public int Userid; 8 | public String Username; 9 | public String proname; 10 | public String propname; 11 | 12 | public String getProname() { 13 | return proname; 14 | } 15 | public void setProname(String proname) { 16 | this.proname = proname; 17 | } 18 | public String getPropname() { 19 | return propname; 20 | } 21 | public void setPropname(String propname) { 22 | this.propname = propname; 23 | } 24 | public int getCoid() { 25 | return coid; 26 | } 27 | public void setCoid(int coid) { 28 | this.coid = coid; 29 | } 30 | public int getOtid() { 31 | return otid; 32 | } 33 | public void setOtid(int otid) { 34 | this.otid = otid; 35 | } 36 | public String getCodetail() { 37 | return codetail; 38 | } 39 | public void setCodetail(String codetail) { 40 | this.codetail = codetail; 41 | } 42 | public int getUserid() { 43 | return Userid; 44 | } 45 | public void setUserid(int userid) { 46 | Userid = userid; 47 | } 48 | public String getUsername() { 49 | return Username; 50 | } 51 | public void setUsername(String username) { 52 | Username = username; 53 | } 54 | public Comment(int acoid,int aotid,String aproname,String apropname,String acodetail){ 55 | coid=acoid; 56 | otid=aotid; 57 | codetail=acodetail; 58 | proname=aproname; 59 | propname=apropname; 60 | 61 | } 62 | public Comment(int aotid,String acodetail,int aUserid){ 63 | 64 | otid=aotid; 65 | codetail=acodetail; 66 | Userid=aUserid; 67 | 68 | } 69 | public Comment(int acoid,int aotid,String aproname,String apropname,String acodetail,String aUsername){ 70 | coid=acoid; 71 | otid=aotid; 72 | codetail=acodetail; 73 | proname=aproname; 74 | propname=apropname; 75 | Username=aUsername; 76 | } 77 | 78 | 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/Bean/Order.java: -------------------------------------------------------------------------------- 1 | package Bean; 2 | 3 | public class Order { 4 | private int oid; 5 | private int Userid; 6 | private String Username; 7 | private String Useradress; 8 | private String odate; 9 | private int oprice; 10 | 11 | public String getUseradress() { 12 | return Useradress; 13 | } 14 | public void setUseradress(String useradress) { 15 | Useradress = useradress; 16 | } 17 | public int getOid() { 18 | return oid; 19 | } 20 | public void setOid(int oid) { 21 | this.oid = oid; 22 | } 23 | public int getUserid() { 24 | return Userid; 25 | } 26 | public void setUserid(int userid) { 27 | Userid = userid; 28 | } 29 | public String getUsername() { 30 | return Username; 31 | } 32 | public void setUsername(String username) { 33 | Username = username; 34 | } 35 | public String getOdate() { 36 | return odate; 37 | } 38 | public void setOdate(String odate) { 39 | this.odate = odate; 40 | } 41 | public int getOprice() { 42 | return oprice; 43 | } 44 | public void setOprice(int oprice) { 45 | this.oprice = oprice; 46 | } 47 | 48 | public Order(int aoid, String aUsername,String aUseradress) { 49 | oid=aoid; 50 | Username=aUsername; 51 | Useradress=aUseradress; 52 | } 53 | public Order(int aoid, String aUsername,String aUseradress,int aoprice) { 54 | oid=aoid; 55 | Username=aUsername; 56 | Useradress=aUseradress; 57 | oprice=aoprice; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/Bean/OrderDetail.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/Bean/OrderDetail.java -------------------------------------------------------------------------------- /src/Bean/Product.java: -------------------------------------------------------------------------------- 1 | package Bean; 2 | 3 | public class Product{ 4 | private int proid; 5 | private String proname; 6 | private String prodetail; 7 | private int proprice; 8 | private int prostock; 9 | private int cateid; 10 | private int catebigid; 11 | private String propname; 12 | private String codetail; 13 | 14 | public String getCodetail() { 15 | return codetail; 16 | } 17 | public void setCodetail(String codetail) { 18 | this.codetail = codetail; 19 | } 20 | public int getProid() { 21 | return proid; 22 | } 23 | public void setProid(int proid) { 24 | this.proid = proid; 25 | } 26 | public String getProname() { 27 | return proname; 28 | } 29 | public void setProname(String proname) { 30 | this.proname = proname; 31 | } 32 | public String getProdetail() { 33 | return prodetail; 34 | } 35 | public void setProdetail(String prodetail) { 36 | this.prodetail = prodetail; 37 | } 38 | public int getProprice() { 39 | return proprice; 40 | } 41 | public void setProprice(int proprice) { 42 | this.proprice = proprice; 43 | } 44 | public int getProstock() { 45 | return prostock; 46 | } 47 | public void setProstock(int prostock) { 48 | this.prostock = prostock; 49 | } 50 | public int getCateid() { 51 | return cateid; 52 | } 53 | public void setCateid(int cateid) { 54 | this.cateid = cateid; 55 | } 56 | public int getCatebigid() { 57 | return catebigid; 58 | } 59 | public void setCatebigid(int catebigid) { 60 | this.catebigid = catebigid; 61 | } 62 | public String getPropname() { 63 | return propname; 64 | } 65 | public void setPropname(String propname) { 66 | this.propname = propname; 67 | } 68 | public Product(int aproid, String aproname, String aprodetail, 69 | int aproprice, int aprostock, int acateid, int acatebigid, 70 | String apropname) { 71 | proid=aproid; 72 | proname=aproname; 73 | prodetail=aprodetail; 74 | proprice=aproprice; 75 | prostock=aprostock; 76 | cateid=acateid; 77 | catebigid=acatebigid; 78 | propname=apropname; 79 | 80 | 81 | } 82 | public Product(String aproname, String aprodetail, 83 | int aproprice, int aprostock, int acateid, int acatebigid, 84 | String apropname) { 85 | proname=aproname; 86 | prodetail=aprodetail; 87 | proprice=aproprice; 88 | prostock=aprostock; 89 | cateid=acateid; 90 | catebigid=acatebigid; 91 | propname=apropname; 92 | 93 | 94 | } 95 | public Product(int aproid,String apropname) { 96 | proid=aproid; 97 | propname=apropname; 98 | } 99 | public Product(int aproid, String aproname, String aprodetail, 100 | int aproprice, int aprostock, int acateid, int acatebigid, 101 | String apropname,String acodetail) { 102 | proid=aproid; 103 | proname=aproname; 104 | prodetail=aprodetail; 105 | proprice=aproprice; 106 | prostock=aprostock; 107 | cateid=acateid; 108 | catebigid=acatebigid; 109 | propname=apropname; 110 | codetail=acodetail; 111 | 112 | } 113 | 114 | 115 | 116 | } 117 | -------------------------------------------------------------------------------- /src/Bean/User.java: -------------------------------------------------------------------------------- 1 | package Bean; 2 | 3 | 4 | import java.sql.ResultSet; 5 | import java.sql.SQLException; 6 | import java.sql.PreparedStatement; 7 | 8 | 9 | public class User { 10 | private int Userid; 11 | private String Username; 12 | private String Userpassword; 13 | private String Usersex; 14 | private String Useradress; 15 | private String Userphone; 16 | private String Useremail; 17 | private int Userstate; 18 | 19 | 20 | 21 | public int getUserid(){ 22 | return this.Userid=Userid; 23 | } 24 | public void setUserid(int Userid){ 25 | this.Userid=Userid; 26 | } 27 | public String getUsername(){ 28 | return this.Username=Username; 29 | } 30 | public void setUsername(String Username){ 31 | this.Username=Username; 32 | } 33 | public String getUserpassword(){ 34 | return this.Userpassword=Userpassword; 35 | } 36 | public void setUserpassword(String Userpassword){ 37 | this.Userpassword=Userpassword; 38 | } 39 | 40 | public String getUsersex(){ 41 | return this.Usersex=Usersex; 42 | } 43 | public void setUsersex(String Usersex){ 44 | this.Usersex=Usersex; 45 | } 46 | 47 | public String getUserphone(){ 48 | return this.Userphone=Userphone; 49 | } 50 | public void setUserphone(String Userphone){ 51 | this.Userphone=Userphone; 52 | } 53 | 54 | public String getUseradress(){ 55 | return this.Useradress=Useradress; 56 | } 57 | public void setUseradress(String Useradress){ 58 | this.Useradress=Useradress; 59 | } 60 | public int getUserstate(){ 61 | return this.Userstate=Userstate; 62 | } 63 | 64 | public void setUserstate(int Userstate){ 65 | this.Userstate=Userstate; 66 | } 67 | public String getUseremail(){ 68 | return this.Useremail=Useremail; 69 | } 70 | 71 | public void setUseremail(String Useremail){ 72 | this.Useremail=Useremail; 73 | } 74 | 75 | public User(String aUsername, String auserpass, 76 | String aUsersex,String aUserphone,String aUseradress,String aUseremail) { 77 | Username=aUsername; 78 | Userpassword=auserpass; 79 | Usersex=aUsersex; 80 | Useradress=aUseradress; 81 | Userphone=aUserphone; 82 | Useremail=aUseremail; 83 | 84 | } 85 | public User(int aUserid,String aUsername, String auserpass, 86 | String aUsersex,String aUserphone, String aUseradress,String aUseremail, 87 | int aUserstate) { 88 | Userid=aUserid; 89 | Username=aUsername; 90 | Userpassword=auserpass; 91 | Usersex=aUsersex; 92 | Useradress=aUseradress; 93 | Userphone=aUserphone; 94 | Useremail=aUseremail; 95 | Userstate=aUserstate; 96 | 97 | } 98 | } -------------------------------------------------------------------------------- /src/BeanDao/BaseDao.java: -------------------------------------------------------------------------------- 1 | package BeanDao; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.sql.Statement; 9 | 10 | 11 | public class BaseDao { 12 | static{ 13 | try { 14 | Class.forName("com.mysql.jdbc.Driver"); 15 | } catch (ClassNotFoundException e) { 16 | e.printStackTrace(); 17 | } 18 | } 19 | 20 | public static Connection getconn(){ 21 | Connection conn=null; 22 | try { 23 | conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/graduation_289_hlfshop","root","123456"); 24 | } catch (SQLException e) { 25 | e.printStackTrace(); 26 | } 27 | return conn; 28 | } 29 | 30 | public static void closeall(ResultSet rs,Statement ps,Connection conn){ 31 | try { 32 | if(rs!=null) 33 | rs.close(); 34 | if(ps!=null) 35 | ps.close(); 36 | if(conn!=null) 37 | conn.close(); 38 | } catch (SQLException e) { 39 | e.printStackTrace(); 40 | } 41 | 42 | } 43 | 44 | public static int exectuIUD(String sql,Object[] params){ 45 | int count=0; 46 | Connection conn=BaseDao.getconn(); 47 | PreparedStatement ps=null; 48 | try { 49 | ps=conn.prepareStatement(sql); 50 | if(params!=null){ 51 | for (int i = 0; i < params.length; i++) { 52 | ps.setObject(i+1, params[i]); 53 | } 54 | } 55 | count=ps.executeUpdate(); 56 | } catch (SQLException e) { 57 | // TODO Auto-generated catch block 58 | e.printStackTrace(); 59 | } 60 | finally{ 61 | BaseDao.closeall(null, ps, conn); 62 | } 63 | return count; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/BeanDao/CarDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/CarDao.java -------------------------------------------------------------------------------- /src/BeanDao/CategoryDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/CategoryDao.java -------------------------------------------------------------------------------- /src/BeanDao/CommentDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/CommentDao.java -------------------------------------------------------------------------------- /src/BeanDao/OrderDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/OrderDao.java -------------------------------------------------------------------------------- /src/BeanDao/OrderDetailDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/OrderDetailDao.java -------------------------------------------------------------------------------- /src/BeanDao/ProductDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/ProductDao.java -------------------------------------------------------------------------------- /src/BeanDao/Tools.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/Tools.java -------------------------------------------------------------------------------- /src/BeanDao/UserDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/BeanDao/UserDao.java -------------------------------------------------------------------------------- /src/ShopServlet/AddShopCarServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/AddShopCarServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/DeleteCommentServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import Bean.Comment; 14 | import Bean.User; 15 | import BeanDao.CarDao; 16 | import BeanDao.CommentDao; 17 | 18 | public class DeleteCommentServlet extends HttpServlet { 19 | 20 | /** 21 | * Constructor of the object. 22 | */ 23 | public DeleteCommentServlet() { 24 | super(); 25 | } 26 | 27 | /** 28 | * Destruction of the servlet.
29 | */ 30 | public void destroy() { 31 | super.destroy(); // Just puts "destroy" string in log 32 | // Put your code here 33 | } 34 | 35 | /** 36 | * The doGet method of the servlet.
37 | * 38 | * This method is called when a form has its tag value method equals to get. 39 | * 40 | * @param request the request send by the client to the server 41 | * @param response the response send by the server to the client 42 | * @throws ServletException if an error occurred 43 | * @throws IOException if an error occurred 44 | */ 45 | public void doGet(HttpServletRequest request, HttpServletResponse response) 46 | throws ServletException, IOException { 47 | response.setContentType("text/html;charset=utf-8"); 48 | String coid=request.getParameter("coid"); 49 | int count=CommentDao.deleteComment(Integer.parseInt(coid)); 50 | if(count>0){ 51 | HttpSession session=request.getSession(); 52 | User user=(User)session.getAttribute("name"); 53 | ArrayList comment=CommentDao.selectCommentByName(user.getUsername()); 54 | request.setAttribute("comment",comment); 55 | request.getRequestDispatcher("comment.jsp").forward(request, response); 56 | } 57 | 58 | } 59 | 60 | /** 61 | * The doPost method of the servlet.
62 | * 63 | * This method is called when a form has its tag value method equals to post. 64 | * 65 | * @param request the request send by the client to the server 66 | * @param response the response send by the server to the client 67 | * @throws ServletException if an error occurred 68 | * @throws IOException if an error occurred 69 | */ 70 | public void doPost(HttpServletRequest request, HttpServletResponse response) 71 | throws ServletException, IOException { 72 | 73 | response.setContentType("text/html"); 74 | PrintWriter out = response.getWriter(); 75 | out 76 | .println(""); 77 | out.println(""); 78 | out.println(" A Servlet"); 79 | out.println(" "); 80 | out.print(" This is "); 81 | out.print(this.getClass()); 82 | out.println(", using the POST method"); 83 | out.println(" "); 84 | out.println(""); 85 | out.flush(); 86 | out.close(); 87 | } 88 | 89 | /** 90 | * Initialization of the servlet.
91 | * 92 | * @throws ServletException if an error occurs 93 | */ 94 | public void init() throws ServletException { 95 | // Put your code here 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/ShopServlet/FinshGoodsServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/FinshGoodsServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/FinshOrderServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/FinshOrderServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/HotLowServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import Bean.Product; 14 | import BeanDao.ProductDao; 15 | 16 | public class HotLowServlet extends HttpServlet { 17 | 18 | /** 19 | * Constructor of the object. 20 | */ 21 | public HotLowServlet() { 22 | super(); 23 | } 24 | 25 | /** 26 | * Destruction of the servlet.
27 | */ 28 | public void destroy() { 29 | super.destroy(); // Just puts "destroy" string in log 30 | // Put your code here 31 | } 32 | 33 | /** 34 | * The doGet method of the servlet.
35 | * 36 | * This method is called when a form has its tag value method equals to get. 37 | * 38 | * @param request the request send by the client to the server 39 | * @param response the response send by the server to the client 40 | * @throws ServletException if an error occurred 41 | * @throws IOException if an error occurred 42 | */ 43 | public void doGet(HttpServletRequest request, HttpServletResponse response) 44 | throws ServletException, IOException { 45 | 46 | HttpSession session=request.getSession(); 47 | ArrayList hlist = ProductDao.selectAllByHot(); 48 | session.setAttribute("hlist", hlist); 49 | ArrayList llist = ProductDao.selectAllByLow(); 50 | session.setAttribute("llist", llist); 51 | response.sendRedirect("index.jsp"); 52 | 53 | } 54 | 55 | /** 56 | * The doPost method of the servlet.
57 | * 58 | * This method is called when a form has its tag value method equals to post. 59 | * 60 | * @param request the request send by the client to the server 61 | * @param response the response send by the server to the client 62 | * @throws ServletException if an error occurred 63 | * @throws IOException if an error occurred 64 | */ 65 | public void doPost(HttpServletRequest request, HttpServletResponse response) 66 | throws ServletException, IOException { 67 | 68 | response.setContentType("text/html"); 69 | PrintWriter out = response.getWriter(); 70 | out 71 | .println(""); 72 | out.println(""); 73 | out.println(" A Servlet"); 74 | out.println(" "); 75 | out.print(" This is "); 76 | out.print(this.getClass()); 77 | out.println(", using the POST method"); 78 | out.println(" "); 79 | out.println(""); 80 | out.flush(); 81 | out.close(); 82 | } 83 | 84 | /** 85 | * Initialization of the servlet.
86 | * 87 | * @throws ServletException if an error occurs 88 | */ 89 | public void init() throws ServletException { 90 | // Put your code here 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/ShopServlet/IndexServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import Bean.Category; 14 | import Bean.Product; 15 | import BeanDao.CategoryDao; 16 | import BeanDao.ProductDao; 17 | 18 | public class IndexServlet extends HttpServlet { 19 | 20 | /** 21 | * Constructor of the object. 22 | */ 23 | public IndexServlet() { 24 | super(); 25 | } 26 | 27 | /** 28 | * Destruction of the servlet.
29 | */ 30 | public void destroy() { 31 | super.destroy(); // Just puts "destroy" string in log 32 | // Put your code here 33 | } 34 | 35 | /** 36 | * The doGet method of the servlet.
37 | * 38 | * This method is called when a form has its tag value method equals to get. 39 | * 40 | * @param request the request send by the client to the server 41 | * @param response the response send by the server to the client 42 | * @throws ServletException if an error occurred 43 | * @throws IOException if an error occurred 44 | */ 45 | public void doGet(HttpServletRequest request, HttpServletResponse response) 46 | throws ServletException, IOException { 47 | 48 | ArrayList flist = CategoryDao.selectCatebigid(); 49 | request.setAttribute("flist", flist); 50 | 51 | 52 | ArrayList clist = CategoryDao.selectCatechildid(); 53 | request.setAttribute("clist", clist); 54 | HttpSession session=request.getSession(); 55 | ArrayList hlist = ProductDao.selectAllByHot(); 56 | session.setAttribute("hlist", hlist); 57 | ArrayList llist = ProductDao.selectAllByLow(); 58 | session.setAttribute("llist", llist); 59 | 60 | request.getRequestDispatcher("index.jsp").forward(request, response); 61 | response.setContentType("text/html"); 62 | PrintWriter out = response.getWriter(); 63 | out 64 | .println(""); 65 | out.println(""); 66 | out.println(" A Servlet"); 67 | out.println(" "); 68 | out.print(" This is "); 69 | out.print(this.getClass()); 70 | out.println(", using the GET method"); 71 | out.println(" "); 72 | out.println(""); 73 | out.flush(); 74 | out.close(); 75 | } 76 | 77 | /** 78 | * The doPost method of the servlet.
79 | * 80 | * This method is called when a form has its tag value method equals to post. 81 | * 82 | * @param request the request send by the client to the server 83 | * @param response the response send by the server to the client 84 | * @throws ServletException if an error occurred 85 | * @throws IOException if an error occurred 86 | */ 87 | public void doPost(HttpServletRequest request, HttpServletResponse response) 88 | throws ServletException, IOException { 89 | 90 | response.setContentType("text/html"); 91 | PrintWriter out = response.getWriter(); 92 | out 93 | .println(""); 94 | out.println(""); 95 | out.println(" A Servlet"); 96 | out.println(" "); 97 | out.print(" This is "); 98 | out.print(this.getClass()); 99 | out.println(", using the POST method"); 100 | out.println(" "); 101 | out.println(""); 102 | out.flush(); 103 | out.close(); 104 | } 105 | 106 | /** 107 | * Initialization of the servlet.
108 | * 109 | * @throws ServletException if an error occurs 110 | */ 111 | public void init() throws ServletException { 112 | // Put your code here 113 | } 114 | 115 | } 116 | -------------------------------------------------------------------------------- /src/ShopServlet/SelectCommentServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import Bean.Category; 14 | import Bean.Comment; 15 | import Bean.OrderDetail; 16 | import Bean.User; 17 | import BeanDao.CategoryDao; 18 | import BeanDao.CommentDao; 19 | import BeanDao.OrderDetailDao; 20 | import BeanDao.Tools; 21 | 22 | public class SelectCommentServlet extends HttpServlet { 23 | 24 | /** 25 | * Constructor of the object. 26 | */ 27 | public SelectCommentServlet() { 28 | super(); 29 | } 30 | 31 | /** 32 | * Destruction of the servlet.
33 | */ 34 | public void destroy() { 35 | super.destroy(); // Just puts "destroy" string in log 36 | // Put your code here 37 | } 38 | 39 | /** 40 | * The doGet method of the servlet.
41 | * 42 | * This method is called when a form has its tag value method equals to get. 43 | * 44 | * @param request the request send by the client to the server 45 | * @param response the response send by the server to the client 46 | * @throws ServletException if an error occurred 47 | * @throws IOException if an error occurred 48 | */ 49 | public void doGet(HttpServletRequest request, HttpServletResponse response) 50 | throws ServletException, IOException { 51 | 52 | response.setContentType("text/html;charset=utf-8"); 53 | HttpSession session=request.getSession(); 54 | User user=(User)session.getAttribute("name"); 55 | String name=user.getUsername(); 56 | ArrayList comment=CommentDao.selectCommentByName(name); 57 | request.setAttribute("comment",comment); 58 | request.getRequestDispatcher("comment.jsp").forward(request, response); 59 | response.setContentType("text/html"); 60 | PrintWriter out = response.getWriter(); 61 | out 62 | .println(""); 63 | out.println(""); 64 | out.println(" A Servlet"); 65 | out.println(" "); 66 | out.print(" This is "); 67 | out.print(this.getClass()); 68 | out.println(", using the GET method"); 69 | out.println(" "); 70 | out.println(""); 71 | out.flush(); 72 | out.close(); 73 | } 74 | 75 | /** 76 | * The doPost method of the servlet.
77 | * 78 | * This method is called when a form has its tag value method equals to post. 79 | * 80 | * @param request the request send by the client to the server 81 | * @param response the response send by the server to the client 82 | * @throws ServletException if an error occurred 83 | * @throws IOException if an error occurred 84 | */ 85 | public void doPost(HttpServletRequest request, HttpServletResponse response) 86 | throws ServletException, IOException { 87 | 88 | response.setContentType("text/html"); 89 | PrintWriter out = response.getWriter(); 90 | out 91 | .println(""); 92 | out.println(""); 93 | out.println(" A Servlet"); 94 | out.println(" "); 95 | out.print(" This is "); 96 | out.print(this.getClass()); 97 | out.println(", using the POST method"); 98 | out.println(" "); 99 | out.println(""); 100 | out.flush(); 101 | out.close(); 102 | } 103 | 104 | /** 105 | * Initialization of the servlet.
106 | * 107 | * @throws ServletException if an error occurs 108 | */ 109 | public void init() throws ServletException { 110 | // Put your code here 111 | } 112 | 113 | } 114 | -------------------------------------------------------------------------------- /src/ShopServlet/SelectOrderServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | 13 | import Bean.Category; 14 | import Bean.OrderDetail; 15 | import Bean.User; 16 | import BeanDao.CategoryDao; 17 | import BeanDao.OrderDetailDao; 18 | import BeanDao.Tools; 19 | 20 | public class SelectOrderServlet extends HttpServlet { 21 | 22 | /** 23 | * Constructor of the object. 24 | */ 25 | public SelectOrderServlet() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Destruction of the servlet.
31 | */ 32 | public void destroy() { 33 | super.destroy(); // Just puts "destroy" string in log 34 | // Put your code here 35 | } 36 | 37 | /** 38 | * The doGet method of the servlet.
39 | * 40 | * This method is called when a form has its tag value method equals to get. 41 | * 42 | * @param request the request send by the client to the server 43 | * @param response the response send by the server to the client 44 | * @throws ServletException if an error occurred 45 | * @throws IOException if an error occurred 46 | */ 47 | public void doGet(HttpServletRequest request, HttpServletResponse response) 48 | throws ServletException, IOException { 49 | ArrayList flist = CategoryDao.selectCatebigid(); 50 | request.setAttribute("flist", flist); 51 | ArrayList clist = CategoryDao.selectCatechildid(); 52 | request.setAttribute("clist", clist); 53 | response.setContentType("text/html;charset=utf-8"); 54 | HttpSession session=request.getSession(); 55 | User user=(User)session.getAttribute("name"); 56 | String name=user.getUsername(); 57 | ArrayList dan=OrderDetailDao.selectById(name); 58 | request.setAttribute("dan",dan); 59 | request.getRequestDispatcher("userorder.jsp").forward(request, response); 60 | 61 | response.setContentType("text/html"); 62 | PrintWriter out = response.getWriter(); 63 | out 64 | .println(""); 65 | out.println(""); 66 | out.println(" A Servlet"); 67 | out.println(" "); 68 | out.print(" This is "); 69 | out.print(this.getClass()); 70 | out.println(", using the GET method"); 71 | out.println(" "); 72 | out.println(""); 73 | out.flush(); 74 | out.close(); 75 | } 76 | 77 | /** 78 | * The doPost method of the servlet.
79 | * 80 | * This method is called when a form has its tag value method equals to post. 81 | * 82 | * @param request the request send by the client to the server 83 | * @param response the response send by the server to the client 84 | * @throws ServletException if an error occurred 85 | * @throws IOException if an error occurred 86 | */ 87 | public void doPost(HttpServletRequest request, HttpServletResponse response) 88 | throws ServletException, IOException { 89 | 90 | response.setContentType("text/html"); 91 | PrintWriter out = response.getWriter(); 92 | out 93 | .println(""); 94 | out.println(""); 95 | out.println(" A Servlet"); 96 | out.println(" "); 97 | out.print(" This is "); 98 | out.print(this.getClass()); 99 | out.println(", using the POST method"); 100 | out.println(" "); 101 | out.println(""); 102 | out.flush(); 103 | out.close(); 104 | } 105 | 106 | /** 107 | * Initialization of the servlet.
108 | * 109 | * @throws ServletException if an error occurs 110 | */ 111 | public void init() throws ServletException { 112 | // Put your code here 113 | } 114 | 115 | } 116 | -------------------------------------------------------------------------------- /src/ShopServlet/SelectProImgServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/SelectProImgServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/SelectProductServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/SelectProductServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/ShopSelectServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/ShopSelectServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/ShopServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/ShopServlet.java -------------------------------------------------------------------------------- /src/ShopServlet/ShowCommentServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.ArrayList; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import Bean.Comment; 13 | import Bean.OrderDetail; 14 | import BeanDao.CommentDao; 15 | import BeanDao.OrderDetailDao; 16 | 17 | public class ShowCommentServlet extends HttpServlet { 18 | 19 | /** 20 | * Constructor of the object. 21 | */ 22 | public ShowCommentServlet() { 23 | super(); 24 | } 25 | 26 | /** 27 | * Destruction of the servlet.
28 | */ 29 | public void destroy() { 30 | super.destroy(); // Just puts "destroy" string in log 31 | // Put your code here 32 | } 33 | 34 | /** 35 | * The doGet method of the servlet.
36 | * 37 | * This method is called when a form has its tag value method equals to get. 38 | * 39 | * @param request the request send by the client to the server 40 | * @param response the response send by the server to the client 41 | * @throws ServletException if an error occurred 42 | * @throws IOException if an error occurred 43 | */ 44 | public void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | response.setContentType("text/html;charset=utf-8"); 47 | int otid=Integer.parseInt(request.getParameter("otid")); 48 | OrderDetail o=OrderDetailDao.selectdetailById(otid); 49 | request.setAttribute("o",o); 50 | request.getRequestDispatcher("finshcomment.jsp").forward(request, response); 51 | 52 | response.setContentType("text/html"); 53 | PrintWriter out = response.getWriter(); 54 | out 55 | .println(""); 56 | out.println(""); 57 | out.println(" A Servlet"); 58 | out.println(" "); 59 | out.print(" This is "); 60 | out.print(this.getClass()); 61 | out.println(", using the GET method"); 62 | out.println(" "); 63 | out.println(""); 64 | out.flush(); 65 | out.close(); 66 | } 67 | 68 | /** 69 | * The doPost method of the servlet.
70 | * 71 | * This method is called when a form has its tag value method equals to post. 72 | * 73 | * @param request the request send by the client to the server 74 | * @param response the response send by the server to the client 75 | * @throws ServletException if an error occurred 76 | * @throws IOException if an error occurred 77 | */ 78 | public void doPost(HttpServletRequest request, HttpServletResponse response) 79 | throws ServletException, IOException { 80 | 81 | response.setContentType("text/html"); 82 | PrintWriter out = response.getWriter(); 83 | out 84 | .println(""); 85 | out.println(""); 86 | out.println(" A Servlet"); 87 | out.println(" "); 88 | out.print(" This is "); 89 | out.print(this.getClass()); 90 | out.println(", using the POST method"); 91 | out.println(" "); 92 | out.println(""); 93 | out.flush(); 94 | out.close(); 95 | } 96 | 97 | /** 98 | * Initialization of the servlet.
99 | * 100 | * @throws ServletException if an error occurs 101 | */ 102 | public void init() throws ServletException { 103 | // Put your code here 104 | } 105 | 106 | } 107 | -------------------------------------------------------------------------------- /src/ShopServlet/UpdateCarServlet.java: -------------------------------------------------------------------------------- 1 | package ShopServlet; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import Bean.Car; 12 | import BeanDao.CarDao; 13 | 14 | public class UpdateCarServlet extends HttpServlet { 15 | 16 | /** 17 | * Constructor of the object. 18 | */ 19 | public UpdateCarServlet() { 20 | super(); 21 | } 22 | 23 | /** 24 | * Destruction of the servlet.
25 | */ 26 | public void destroy() { 27 | super.destroy(); // Just puts "destroy" string in log 28 | // Put your code here 29 | } 30 | 31 | /** 32 | * The doGet method of the servlet.
33 | * 34 | * This method is called when a form has its tag value method equals to get. 35 | * 36 | * @param request the request send by the client to the server 37 | * @param response the response send by the server to the client 38 | * @throws ServletException if an error occurred 39 | * @throws IOException if an error occurred 40 | */ 41 | public void doGet(HttpServletRequest request, HttpServletResponse response) 42 | throws ServletException, IOException { 43 | 44 | response.setContentType("text/html;charset=utf-8"); 45 | PrintWriter out = response.getWriter(); 46 | String str1=request.getParameter("carid"); 47 | String str2=request.getParameter("action"); 48 | String str3=request.getParameter("getvalue"); 49 | if(str2.equals("jia")){ 50 | int count=CarDao.updateJia(Integer.parseInt(str1)); 51 | } 52 | if(str2.equals("jian")){ 53 | int count=CarDao.updateJian(Integer.parseInt(str1)); 54 | 55 | } 56 | if(str2.equals("closeText")){ 57 | int count=CarDao.updateCount(Integer.parseInt(str1),Integer.parseInt(str3)); 58 | } 59 | if(str2.equals("delText")){ 60 | int count=CarDao.deleteCproduct(Integer.parseInt(str1)); 61 | } 62 | response.sendRedirect("ShopSelectServlet"); 63 | } 64 | 65 | /** 66 | * The doPost method of the servlet.
67 | * 68 | * This method is called when a form has its tag value method equals to post. 69 | * 70 | * @param request the request send by the client to the server 71 | * @param response the response send by the server to the client 72 | * @throws ServletException if an error occurred 73 | * @throws IOException if an error occurred 74 | */ 75 | public void doPost(HttpServletRequest request, HttpServletResponse response) 76 | throws ServletException, IOException { 77 | 78 | response.setContentType("text/html"); 79 | PrintWriter out = response.getWriter(); 80 | out 81 | .println(""); 82 | out.println(""); 83 | out.println(" A Servlet"); 84 | out.println(" "); 85 | out.print(" This is "); 86 | out.print(this.getClass()); 87 | out.println(", using the POST method"); 88 | out.println(" "); 89 | out.println(""); 90 | out.flush(); 91 | out.close(); 92 | } 93 | 94 | /** 95 | * Initialization of the servlet.
96 | * 97 | * @throws ServletException if an error occurs 98 | */ 99 | public void init() throws ServletException { 100 | // Put your code here 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /src/ShopServlet/UpdateCommentServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/ShopServlet/UpdateCommentServlet.java -------------------------------------------------------------------------------- /src/UserAdmin/LoginServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/UserAdmin/LoginServlet.java -------------------------------------------------------------------------------- /src/UserAdmin/OutServlet.java: -------------------------------------------------------------------------------- 1 | package UserAdmin; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | public class OutServlet extends HttpServlet { 13 | 14 | /** 15 | * Constructor of the object. 16 | */ 17 | public OutServlet() { 18 | super(); 19 | } 20 | 21 | /** 22 | * Destruction of the servlet.
23 | */ 24 | public void destroy() { 25 | super.destroy(); // Just puts "destroy" string in log 26 | // Put your code here 27 | } 28 | 29 | /** 30 | * The doGet method of the servlet.
31 | * 32 | * This method is called when a form has its tag value method equals to get. 33 | * 34 | * @param request the request send by the client to the server 35 | * @param response the response send by the server to the client 36 | * @throws ServletException if an error occurred 37 | * @throws IOException if an error occurred 38 | */ 39 | public void doGet(HttpServletRequest request, HttpServletResponse response) 40 | throws ServletException, IOException { 41 | HttpSession session = request.getSession(); 42 | session.removeAttribute("name"); 43 | response.sendRedirect("login.jsp"); 44 | } 45 | 46 | /** 47 | * The doPost method of the servlet.
48 | * 49 | * This method is called when a form has its tag value method equals to post. 50 | * 51 | * @param request the request send by the client to the server 52 | * @param response the response send by the server to the client 53 | * @throws ServletException if an error occurred 54 | * @throws IOException if an error occurred 55 | */ 56 | public void doPost(HttpServletRequest request, HttpServletResponse response) 57 | throws ServletException, IOException { 58 | 59 | response.setContentType("text/html"); 60 | PrintWriter out = response.getWriter(); 61 | out 62 | .println(""); 63 | out.println(""); 64 | out.println(" A Servlet"); 65 | out.println(" "); 66 | out.print(" This is "); 67 | out.print(this.getClass()); 68 | out.println(", using the POST method"); 69 | out.println(" "); 70 | out.println(""); 71 | out.flush(); 72 | out.close(); 73 | } 74 | 75 | /** 76 | * Initialization of the servlet.
77 | * 78 | * @throws ServletException if an error occurs 79 | */ 80 | public void init() throws ServletException { 81 | // Put your code here 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /src/UserAdmin/RegServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/UserAdmin/RegServlet.java -------------------------------------------------------------------------------- /src/UserAdmin/UpdateUserServlet.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ClothingMallManagementSystem/76fa634477f915bd3bce4188972876585cd3303c/src/UserAdmin/UpdateUserServlet.java --------------------------------------------------------------------------------