摘要
针对当前多层Web体系结构的设计中存在的一些问题,本文基于MVC设计模式,对MVC的控制器做进一步的研究和设计。首先分析比较了单一控制器和多控制器两种常用的控制器设计方法,接着基于多控制器设计方法提出了一种主辅控制器设计方案,并综合使用Servlet+JavaBean技术加以具体实现。可以发现,这种控制器设计方案具有较好的可维护性、可扩充性和作为一个应用框架的可伸缩性。
Aiming at the problems in the current design of multi-tier Web architecture, this paper makes further research and design on the MVC controller based on MVC design pattern. It first compares and analyzes the common designing ways of sinsle-controller and multi-controller. Then it puts forward a new main assistant controller design project based on multi-controller designing way, and achieves detailed realization by comprehensively using the technology of Servlet + Java Bean. This controller has a sound ability to maintain and extend as an application frame.
出处
《计算机与现代化》
2005年第11期108-111,共4页
Computer and Modernization
关键词
MVC
控制器
主控制器
辅控制器
MVC
controller
main controller
assistant controller