摘要
随着网上购物概念这些年的火热, 国内外越来越多的商家都在Internet上开设了自己的网上购物平台。由于网上购物的便捷,客户在网站可以获得大量的商品信息,买到全中国乃至全世界的商品;从订货、买货到送货上门无需亲历亲为,省时省力。对于网店经营者而言,网上商品省去租店面、召雇员及储存保管等一系列费用,可以降低货物价格。预计将来会有更多的企业选择网上销售,通过互联网了解市场信息,通过及时反馈的数据适时调整经营战略,以此提高企业的经济效益和参与国际竞争的能力。网上购物突破了传统商务的障碍,无论对消费者、企业还是市场都有着巨大的吸引力和影响力,在新经济时期无疑是达到“多赢”效果的理想模式。
本文通过J2EE技术应用Struts的框架实现一个网上购物系统。本文对于开发环境、网站架设、数据库的设计再到各个结构模块的设计和实现方法等进行了详细分析。其中重点介绍了系统各个模块的实现方法。
关键词:网上购物,J2EE,Struts
ABSTRACT
The concept of online shopping had prevailed for years. An increasing number of businessmen at home and abroad are set up in the Internet on its own platform for online shopping. Due to the convenience of online shopping sites,customer can get a large number of customers in the merchandise information and buy commodities at home and abroad . Their orders online, and do not have to go out buying. For businesses, because there is no inventory pressure on online sales, low operating costs, scale of operation from the site constraints. In the future, more and more businesses will to choose online marketing.Enterprise to find out market information via the internet and adjust business strategy through the timely feedback of data in order to enhance the economic efficiency and the ability to participate in international competition. Online shopping break the barriers of traditional business, both for consumers, enterprises still have significant market appeal and influence in the new economy, it will achieve "win-win" effect of the ideal model.
This article mainly introduces the J2EE technology and Struts framework through an on-line shopping system. The article recommend the development environment,the web site set up,the database structure design of various modules and the implementation of methods. This article focuses on introducing the implementation of each module.
Keywords: shopping online,J2EE,Struts
目录
摘要 II
ABSTRACT III
第1章 引言 1
1.1 研究背景 1
1.2 研究内容 5
第2章 开发工具及运行环境概述 6
2.1 MyEclipse开发工具 6
2.2 Tomcat服务器 6
2.3 JSP技术 7
2.4 MySQL数据库 7
2.5 Struts框架 8
第3章 系统需求分析 9
3.1 系统的功能结构分析 9
3.2 网站架构 10
3.3 数据库需求分析 11
3.4 数据库逻辑结构设计 12
3.5 数据库的连接与封装 17
第4章 详细系统设计 19
4.1 前台用户模块设计 19
4.2 后台用户模块设计 29
第5章 系统设计总结 33
致谢 34
附录 源代码 36