摘要
随着Internet的不断普及,人们对于互联网的要求已不单单是浏览一下网页,收发电子邮件,日益忙碌的人们开始追求足不出户的利用互联网这一强大的平台来实现网上购物。
本购物网站采用基于MVC的设计模式,表现层主要使用JSP技术,控制层使用Struts框架进行逻辑控制,持久层使用Hibernate框架来持久化数据,同时运用到一些Ajax技术,来异步更新JSP页面。实现后的网站包括前台和后台两部分,前台部分面向顾客,主要功能包括会员注册、商品浏览、商品搜索、购物车、订单、留言等;后台部分面向管理员,主要功能包括商品管理、顾客订单处理、会员管理以及顾客留言处理等。
建成后的购物网站是一个动态、交互式、具有商品提供、系统管理、用户评论等功能的综合性电子商务网站。
关键词:MVC,Struts框架,Hibernate框架,Ajax,电子商务网站
ABSTRACT
With the continuous popularity of the Internet, people for the requirements of the Internet is not just glancing at the page, sending and receiving e-mails. People who are getting busier and busier begin to use the Internet for shopping but without going out.
The design of Shopping Site based on the MVC model, the main technology used in developing performance layer is JSP technology .In control layer it uses Struts framework for logic controlling, and it uses persistence framework to Persistent data, also use some Ajax technology to update the JSP page asynchronous. The realized website includes two parts front and background. The front part includes the functions of member registration, product browsing, product search, shopping cart, orders, and messages, is building for the customer. And the back part includes the functions of product management, customer order processing, membership management and message processing, is building for the administrator.
The completion of the website system is a dynamic, interactive, with the provision of goods, systems management, user comments and other functions of integrated e-commerce website.
Keywords: MVC,Struts framework,Hibernate framework,Ajax,E-Commerce Site
目录
摘要 I
ABSTRACT II
第1章 引言 1
1.1 背景 1
1.2 研究内容 2
第2章 开发环境及相关技术简介 3
2.1 开发环境 3
2.1.1 JDK 3
2.1.2 MyEclipse 3
2.1.3 MySQL数据库 4
2.1.4 Tomcat服务器 4
2.2 相关技术 4
2.2.1 B/S体系结构 4
2.2.2 JSP技术 5
2.2.3 MVC架构模式 5
2.2.4 Struts框架 5
2.2.5 Hibernate框架 6
2.2.6 Ajax技术 6
第3章 需求分析与功能设计 8
3.1需求分析 8
3.2 功能结构分析与设计 8
3.2.1 前台业务功能与模块设计 8
3.2.2 后台业务功能与模块设计 11
第4章 数据库分析与设计 16
4.1 系统E-R图 16
4.2 数据库表结构分析与设计 17
4.3 数据库的连接 20
第5章 网站功能的具体实现 23
5.1 前台功能的实现 23
5.1.1 顾客注册与登录模块的实现 23
5.1.2 商品检索与浏览模块的实现 25
5.1.3 购物模块的实现 27
5.1.4 顾客反馈信息与留言模块的实现 30
5.2 后台的实现 31
5.2.1 后台登录模块的实现 31
5.2.2 商品管理模块的实现 32
5.2.3 订单管理模块的实现 34
5.2.4 会员管理模块的实现 36
5.2.5 系统用户管理模块的实现 37
第6章 结束语 40
致谢 41
参考文献 42