摘要
Servlet技术作为J2EE系统架构的重要组成部分,是整个系统架构的交通枢纽,称之为控制引擎,可以在许多方面扩充Web服务的功能。分析了当前很多基于J2EE的Web应用服务设计中的不完整性后,说明对于一个成熟的Web实现方案来说,开发Servlet实现控制器功能是很必要的。简述了Servlet技术和基本结构,着重介绍了Servlet主要方法的实现过程。实际应用表明,由Servlet实现控制器功能,能很完整地体现J2EE系统架构的特性,也使模型/视图/控制器模式中的三部分之间耦合性降到最低,最大限度地将Web应用系统中呈现逻辑与业务逻辑严格分开。
Servlet technology is an important part of J2EE based on system framework, named schedule center, which can extend and enhance web services in many ways. Analyzing the design of Web application services based on J2EE, and their imperfection indicates it is necessary to implement controller function by Servlet. Servlet technology and infrastructure were stated simply. Finally, main methods in implementing servlet are presented. The practical system shows that the controller function by Servlet incarnates the whole character of J2EE system framework and lowers coupling among MVC, and strictly detaches view logical part from business logical part in web application system.
出处
《辽宁工学院学报》
2005年第1期13-16,共4页
Journal of Liaoning Institute of Technology(Natural Science Edition)