【正文】
opular framework consisting of Struts, Spring and Hibernate, where Struts behaves as the controller layer, Spring as the service layer, and Hibernate as the data persistence layer. JSTL library is also used. With all these technologies together, the application achieves all the design purposes, and is flexible for update and maintenance. The application consists of two main subsystems, the front end subsystem and the central management subsystem. For the front end subsystem, the features involve customer registration, login, information retrieval on merchandises, product search, shopping cart, preference folder, customer profile update. Product information update, orders process, category and user information management are the functions of the central management subsystem. In the mean time, the shopping cart can be used without login, the selected item can be added automatically. Key Words: Online shopping system; Struts; Hibernate; JSTL; The Model of MVC 目錄 III 目 錄 1 引 言 .................................................................................................. 1 2 相關(guān)知識和技術(shù)背景 ........................................................................... 2 J2EE概述 ............................................................................................................ 2 MVC設(shè)計模式 ................................................................................................... 2 Struts MVC設(shè)計模式 ......................................................................................... 3 Spring框架 .......................................................................................................... 3 Hibernate 框架 ..................................................................................................... 4 Struts、 Spring、 Hibernate 的整合 ..................................................................... 5 JSTL標(biāo)簽庫 ........................................................................................................ 6 3 系統(tǒng)需求分析 ....................................................................................... 7 B2C系統(tǒng)模塊介紹 ............................................................................................. 7 確定用戶 需求 ...................................................................................................... 8 需求規(guī)定 .............................................................................................................. 9 對性能的規(guī)定 .............................................................................................. 9 輸入輸出要求 .............................................................................................. 9 數(shù)據(jù)管理能力要求 ....................................................................................... 9 故障處理要求 .............................................................................................. 9 運行環(huán)境需求 .............................................................................................. 9 4 系統(tǒng)概要設(shè)計 ..................................................................................... 10 總體設(shè)計 ............................................................................................................ 10 環(huán)境配置 ....................................................................................................10 系統(tǒng)結(jié)構(gòu) ....................................................................................................10 總體模塊 ....................................................................................................10 功能模塊 ............................................................................................................ 11 用戶顧客注冊、登錄 模塊 ............................................................................ 11 商品檢索、瀏覽模塊 ...................................................................................12 個人信息管理模塊 ......................................................................................12 購物車 /收藏夾模塊 .....................................................................................12 后臺登錄模塊 .............................................................................................13 商品管理模塊 .............................................................................................14 商品目錄管理模塊 ......................................................................................14 訂單管理模塊 .............................................................................................15 目錄 IV 會員管理模塊 .............................................................................................16 5 系統(tǒng)詳細設(shè)計 ..................................................................................... 17 數(shù)據(jù)庫設(shè)計 ........................................................................................................ 17 ER圖設(shè)計 ..................................................................................................17 數(shù)據(jù)表設(shè)計 .................................................................................................18 架構(gòu)設(shè)計 ............................................................................................................ 20 帶日志功能的設(shè)計 ......................................................................................20 .......................................................................................21 Struts配置文件 ...........................................................................................21 Spring配置文件 ..........................................................................................22 Hibernate自動生成的文件 ...........................................................................22 工程包層次結(jié)構(gòu) ..........................................................................................23 詳細模塊設(shè)計 .................................................................................................... 23 顧客注冊、登錄模塊 .......