摘要
为解决基于J2EE的Web应用中,信息的分页显示存在大量代码重复和实现过于复杂等问题,文中剖析分页处理过程存在的共性,同时分析目前广泛用于Web应用开发的开源框架struts、spring、hibernate(简称SSH)进行分析。通过SSH框架的整合以及Java泛型技术的应用,文章设计了一种通用的分页方法,并对该方法的实现原型进行设计,同时通过具体实例对实现过程涉及的通用类、核心属性和方法以及参数配置进行详细描述。通过在工程项目中的应用,验证了该方法在降低信息分页处理过程复杂度的同时,提高了分页代码的复用性,同时该方法具有通用高效、简单易用等特点。
To solve the problem that exists in information pagination of J2EE-based Web applications:large code duplication and too complicated to achieve, analyze the commonness pagination processing and the current widely used open source framework in Web application development struts ,spring ,hibernate( SSH for short). Through the integration of SSH and the Java generic technology, designed a universal paging method and its implementation prototype, while described the common class ,core attributes and methods parameter con- figuration by means of concrete examples in detail. By the project application, this means reduces the pagination complexity of operating information and improves the repetition of pagination code greatly, while it has versatile ,efficient and simple features.
出处
《计算机技术与发展》
2012年第1期67-71,共5页
Computer Technology and Development
关键词
SSH
泛型
通用分页
SSH
generics
generic pagination