分类号:TP311.1 U D C:D10621-408-(2007) 6057-0
密 级:公 开 编 号:2003215047
成 都 信 息 工 程 学 院
学 位 论 文
基于 Java 的在线购物系统的设计与实现
论 文 作 者 姓 名 :
申 请 学 位 专 业 :
申 请 学 位 类 别 :
指导教师姓名(职称):
论 文 提 交 日 期 :
基于 Java 的在线购物系统的设计与实现
摘 要
电子商务(Electronic Commerce)是互联网上出现的新概念。它是利用计算
机技术、网络技术和远程通信技术,实现整个商务(买卖)过程中的电子化、数字
化和网络化。随着它的广泛使用,给人们带来了便利,并逐渐改变了人们的生活
方式.
国内在线购物网站多数是用 ASP,PHP 技术实现的,而基于 JSP 的优秀网站
较少。本系统——网上图书超市采用 JSP+JavaBean+ SQL Server 数据库三层模式
设计并实现。本论文详细地阐述了系统的需求分析、系统总体架构、详细设计以
及模块的实现过程,主要实现了以下模块功能:会员注册、登录/注销;用户管
理;浏览图书详细信息;图书搜索;图书管理;购物车;订单;订单管理等。
关键词: JSP;SQL Server;JavaBean;在线购物
Design and Implementation of online shopping system based
on Java
Abstract
Electronic commence over Internet is a new concept. To realize electronic,
digital and networking commerce, computer technology, network technology and
telecommunications are used. With its widely used, it brings people with a lot of
convenience, and is changing the way of people’s life.
Most domestic online shopping websites are implemented with ASP, PHP, and
few are based on JSP. This system——web-based bookstore is implemented with JSP,
JavaBean, and SQL Server database in three-tier model. In the paper, requirements
analysis, general framework, detailed design and realization of each module are
introduced. These modules includes member registration, login in/login out, user
management, browsing books detailed information, searching book, library
management, the shopping car, orders and orders management etc.
Key words: JSP;SQL Server;JavaBean; Online Shopping
目 录
论文总页数:29 页
1 引言............................................................................................................................................1
1.1 课题背景............................................................................................................................1
1.2 国内外研究现状................................................................................................................1
1.3 本课题的研究方法............................................................................................................2
2 关于 JSP.....................................................................................................................................2
2.1 JSP 简介.............................................................................................................................2
2.2 JSP 的运行原理.................................................................................................................2
2.3 JSP 页面的组成.................................................................................................................3
2.4 JSP 的运行环境.................................................................................................................3
2.5 JAVABEAN 技术介绍 .............................................................................................................4
3 需求分析....................................................................................................................................4
3.1 系统说明............................................................................................................................4
3.2 系统功能简介....................................................................................................................4
4 系统设计....................................................................................................................................5
4.1 功能模块............................................................................................................................5
4.2 系统设计思想....................................................................................................................6
4.3 系统总体流程....................................................................................................................6
4.4 网站架设............................................................................................................................7
4.4.1 开发环境.........................................................................................................................7
4.4.2 建立站点.........................................................................................................................7
4.5 数据库设计........................................................................................................................7
5 系统实现....................................................................................................................................9
5.1 编写 JAVABEAN .....................................................................................................................9
5.1.1 数据库操作的 JavaBean 的实现.................................................................................10
5.1.2 字符串处理的 JavaBean 的实现.................................................................................10
5.1.3 保存购物信息的 JavaBean 的实现.............................................................................10
5.2 网站前台主要功能模块实现..........................................................................................11
5.2.1 网站前台首页设计.......................................................................................................11
5.2.2 重点推荐展台的实现过程...........................................................................................11
5.2.3 新书上架实现过程.......................................................................................................13
5.2.4 图书分类实现过程.......................................................................................................13
5.2.5 用户管理实现过程.......................................................................................................14
5.2.6 购物车实现过程...........................................................................................................15
5.2.7 生成订单实现过程.......................................................................................................19
5.2.8 订单查询实现过程.......................................................................................................20
5.2.9 销售排行实现过程.......................................................................................................20
5.3 网站后台主要功能模块设计..........................................................................................21
5.3.1 后台登录实现过程.......................................................................................................21
5.3.2 图书管理页面实现过程...............................................................................................21
5.3.3 用户管理实现过程.......................................................................................................23
5.3.4 订单管理实现过程.......................................................................................................24
5.3.5 公告管理实现过程.......................................................................................................25
5.3.6 退出系统实现过程.......................................................................................................25
6 系统测试..................................................................................................................................25
6.1 测试环境..........................................................................................................................25
6.2 测试结果..........................................................................................................................26
总 结..........................................................................................................................................26
参考文献..........................................................................................................................................27
致 谢..........................................................................................................................................28
声 明..........................................................................................................................................29