J4 ›› 2013, Vol. 26 ›› Issue (4): 60-64.doi: 10.3976/j.issn.1002-4026.2013.04.014

• 论文 • 上一篇    下一篇

一种基于Struts2框架的Web分页模型的设计与实现

崔行臣,张明光   

  1. 山东广播电视大学现代教育技术中心,山东 济南 250014
  • 收稿日期:2012-10-24 出版日期:2013-08-20 发布日期:2013-08-20
  • 作者简介:崔行臣(1981-),男,硕士,研究方向为计算机软件方法与技术。Email:cxc0531@163.com

Struts2 framework based design and realization of a web pagination query model

CUI Xing-Chen, ZHANG Ming-Guang   

  1. Center for Educational Technology, Shandong Radio &[KG*2]TV University, Jinan 250014, China
  • Received:2012-10-24 Online:2013-08-20 Published:2013-08-20

摘要:

     针对Java EE平台上Web应用系统中的分页查询显示问题,结合MVC模式和Struts2框架技术实现了一种Web分页模型。依托MVC层次结构设计,在业务逻辑层中定义DAO抽象类来实现数据库的可移植性,在显示层中引入JSP和Struts2标签实现分页导航的显示和逻辑的分离。实际应用证明,该分页模型移植性好、耦合性小且与数据库相关性小,能够节省维护时间。

关键词: Web数据库分页, Struts2框架, MVC

Abstract:

      We implement a web pagination query model based on MVC pattern and Struts2 framework for the issue of pagination query in Java EE based web application system. We achieve portability of different database by defining an abstract class DAO in business logic layer based on MVC layer structure design. JSP and Struts2 tags are applied to view layer to achieve the separation of pagination navigation display from its logic. Practical application shows that the page component model has good portability and good decoupling performance, easy to be maintained.

Key words: webbased database pagination, Struts2 framework, MVC

中图分类号: 

  • TP311