Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2006, Vol. 32 ›› Issue (17): 144-146. doi: 10.3969/j.issn.1000-3428.2006.17.050

• Software Technology and Database • Previous Articles     Next Articles

Research and Practice of Web Framework’s Extension and Integration

LI Yang, MA Guangsi   

  1. (School of Information & Control Engineering, Xi’an University of Architecture & Technology, Xi’an 710055)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-09-05 Published:2006-09-05

扩展与整合Web应用框架的研究与实践

李 扬,马光思   

  1. (西安建筑科技大学信息与控制工程学院,西安 710055)

Abstract: This paper discusses how to extend the Struts framework and integrate primary Hibernate to form a new framework aiming at a kind of middle-small applications, which mostly deal with persistent data, have clear module partitions and simple JSP interfaces. With an example OME, the paper analyzes its realization process and technique keys including creating model components, simplifying configuration, extending basic components of struts, integrating persistent framework Hibernate. OME not only keeps MVC advantages of Struts but also supports a new developing manner, that is, every team member plays three roles in an individual module. The paper gives an application sample, further improving scheme and risk.

Key words: Framework, Extend, Integration, Inversion of control, Hot spot

摘要: 针对一类按业务流明确划分功能块、涉及持久性存储、以数据维护为主要实现、界面相对简单的中小型Web应用开发,文章讨论了扩展Struts与整合Hibernate形成新框架OME的方法。通过具体实例,分析了定义模型层组件、简化配置文件、扩展基础组件、集成持久化框架的实现过程和技术要点。新框架在保留原有基础框架各种特点的同时,支持按功能点划分职责,能为应用开发提供更大灵活性,给出了OME的应用示例、改进设想和风险告诫考量。

关键词: 框架, 扩展, 整合, 反向控制, 热点

CLC Number: