基于jsp的网上购物系统设计本科毕业论文(编辑修改稿)内容摘要:

Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement AdminType Int(4) Yes Null AdminName Char(12) Yes Null LoginName Char(12) Yes Null LoginPwd Char(12) Yes Null 表 orders(订单基本信息 表 ) 主要用于保存 订单的基本信息 ,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement Member Int(4) Yes Null Cart Int(4) Yes Null OrderNo Char(20) Yes Null OrderDate Datetime Yes Null OrderStatus Int(4) Yes Null 13 表 Leaveword(顾客留言信息 表 ) 主要用于保存 顾客留言的基本 信息,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement Member Int(4) Yes Null Admin Int(4) Yes Null Content Int(4) yes Null LeaveDate Datatime yes Null AnswerContent Text yes Null Title Char(60) yes Null AnswerDate Datetime yes Null 表 member (会员基本信息 表 ) 主要用于保存 会员 的基本信息,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement MemberLevel Int(4) No Null LoginName Char(12) Yes Null LoginPwd Char(12) Yes Null MemberName Char(20) Yes Null Phone Char(15) Yes Null Address Varchar(100) Yes Null Zip Char(10) Yes Null RegDate Datatime Yes Null LastDate Datatime Yes Null Login Int(4) Yes Null EMail Varchar(100) Yes Null 14 表 memberlevel (会员级别信息 表 ) 主要用于保存 会员级别 的信息,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement LevelName Char(20) Yes Null Favourable Int(4) Yes Null 表 category (商品基本信息 表 ) 主要用于保存 商品 的 基本 信息,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement cateName Char(40) Yes Null cateDesc text Yes Null 表 merchandise (商品详细信息 表 ) 主要用于保存 商品 的 详细 信息,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement Category Int(4) Yes Null MerName Char(40) Yes Null Price Decimal(8,2) Yes Null SPrice Decimal(8,2) Yes Null MerModel Char(40) Yes Null Picture Varchar(100) Yes Null MerDesc Text Yes Null Manufacturer Char(60) Yes Null LevelFactoryDate Datetime Yes Null Special Int(4) Yes Null 15 表 cart (会员购物信息表 ) 主要用于保存 会员购物信息 信息,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement Member Int(4) Yes Null Money Decimal(9,2) Yes Null CartStatus Int(4) yes Null 表 cartselectdmer(订单项信息 表 ) 主要用于保存 订单项的基本信息(每个订单包括一个或多个订单项) ,该表的结构 下图 所示 Field Type Null Key Default Extra ID Int(4) No pri Null Auto_inceement Cart Int(4) Yes Null Merchandise Int(4) Yes Null Nember Int(4) Yes Null Price Decimal(8,2) Yes Null money Decimal(9,2) Yes Null 本章小结 本章主要介绍了此系统的概要设计。 首先对系统的总体结构进行设计,将系统分为七大功能模块,画出每个功能模块的用例图。 然后对系统所需要的数据库进行了逻辑设计和物理设计。 16 5 系统的实现 整合 SSH 的关键代码 ⑴ 文件中的配置 filter filternameCharacterEncodingFilter/filtername filterclass/filterclass initparam paramnameencoding/paramname paramvalueGB2312/paramvalue /initparam initparam paramnameignore/paramname paramvaluetrue/paramvalue /initparam /filter filtermapping filternameCharacterEncodingFilter/filtername servletnameaction/servletname /filtermapping !Struts 标签库配置 jspconfig taglib tagliburi/strutsbean/tagliburi tagliblocation/WEBINF/tld//tagliblocation /taglib taglib tagliburi/strutshtml/tagliburi tagliblocation/WEBINF/tld//tagliblocation 17 /taglib taglib tagliburi/strutslogic/tagliburi tagliblocation/WEBINF/tld//tagliblocation /taglib /jspconfig !JSONRPC 组件 servlet servletname/servletname servletclass/servletclass /servlet servletmapping servletname/servletname urlpattern/JSONRPC/urlpattern /servletmapping !配置 Struts 中央控制器 servlet servletnameaction/servletname servletclass/servletclass initparam paramnameconfig/paramname paramvalue/WEBINF//paramvalue /initparam initparam paramnamedebug/paramname paramvalue3/paramvalue /initparam initparam paramnamedetail/paramname paramvalue3/paramvalue 18 /initparam loadonstartup0/loadonstartup /servlet servletmapping servletnameaction/servletname urlpattern*.do/urlpattern /servletmapping !配置欢迎文件 welefilelist welefile/welefile /welefilelist /webapp 以上代码主要配置了 Struts 的中央控制器 AcionServlet 的截取方式为“ *.do” ,过滤字 符的 filter 过滤器的截取方式为 “ /*”。 并且将 Struts 和 Spring 进行整合。 ⑵ 文件中的配置 strutsconfig datasources / formbeans formbean name=loginForm type= / formbean name=adminForm type= / formbean name=cateForm type= / formbean name=merForm type= / formbean name=memLoginForm type= / formbean name=memberForm type= / /formbeans globalexceptions / globalforwards forward name=addAdmin path=/Admin/ / 19 forward name=sorry path=/Admin// forward name=addCate path=/Admin/ / forward name=addMer path=/Admin/ / forward name=addSMer path=/Admin/ / forward name=index path=/ / forward name=memSorry path=/ / /globalforwards actionmappings action attribute=loginForm input=/Admin/ name=loginForm parameter=method path=/Admin/login scope=request type= forward name=logoutSuccess path=/Admin/ / forward name=loginSuccess path=/Admin/ / /action action attribute=adminForm input=/Admin/ name=adminForm parameter=。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。