首页 | 本学科首页   官方微博 | 高级检索  
     

应用MVC模式开发商务网站的研究
引用本文:冯锡炜,崔雅娟,秦航.应用MVC模式开发商务网站的研究[J].石油化工高等学校学报,2002,15(3):64-67.
作者姓名:冯锡炜  崔雅娟  秦航
作者单位:1. 辽宁石油化工大学信息工程学院,辽宁抚顺,113001
2. 北京语言文化大学计算机科学与技术系,北京,100083
3. 抚顺市望花区教师进修学校,辽宁抚顺,113001
摘    要:面向对象软件开发方法是当前软件开发领域的主流技术。将此技术应用到开发电子商务系统中 ,用面向对象的开发方法促使软件开发人员按对象是应用领域的观点去思考问题 ,是开发电子商务系统的一种尝试 ,也是必然趋势。在介绍SmalltalkMVC模式之后 ,着重讨论了将MVC模式应用于基于J2EE开发电子商务系统中 ,进行系统设计和对象设计与实现。将整个系统分为 5类对象处理 :View、Controller、Model、DB类对象和例外类对象。具体实现时 ,View类由JSP实现 ,Controller类由Servlet实现 ,Model类由EJB/JavaBean组成 ,DB类由Input ,Data ,Value 3个类处理。一般情况下 ,Controller类操作比较固定 ,其他类针对不同操作对象又进行了类的划分与继承 ,以达到复用性好、易维护、开发高效的要求。最后给出一个示例加以说明

关 键 词:设计模式  EJB  面向对象  电子商务
文章编号:1006-396X(2002)03-0064-04
修稿时间:2001年11月16

Research on Development of E-Commerce Site by MVC Patterns
FENG Xi-wei ,CUI Ya-juan ,Qin Hang.Research on Development of E-Commerce Site by MVC Patterns[J].Journal of Petrochemical Universities,2002,15(3):64-67.
Authors:FENG Xi-wei  CUI Ya-juan  Qin Hang
Affiliation:FENG Xi-wei 1,CUI Ya-juan 2,Qin Hang 3*
Abstract:In the software development fields, the object-oriented method is technical mainstream. Applying this technology to E-commerce system, using object oriented method to make the software developers consider problem from the point of view that the objects are the application fields, is a new attempt to develop E-commerce system, and is an inevitable trend as well. After smalltalk MVC patterns was introduced, the OOA & OOD for E-commerce system based on J2EE by MVC patterns was discussed. The whole E-commerce system was composed of view class object, controller class object, model class object, DB class object and exception class object. These class were implemented respectively by JSP, servlet , EJB/JavaBean technology , DB class was composed of input, data and value classes. The other classes ,except controller class were divided and inherited according to their operations in order to meet the requirements of good reuserability, easy- maintain ability ,open and high effectiveness. Finally an illustrative example was given.
Keywords:Design patterns  EJB  Object-oriented  E-commerce  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号