摘要
本文分析了MVC架构模式的特点和优势。以用户注册登录和数据搜索引擎组件的设计为实例,从数据表现的视图层、封装业务数据和业务逻辑的模型层以及处理业务逻辑并选择视图的控制层的角度,全面、深刻地阐述了MVC模式在JSP数据库应用系统开发中的具体实现。采用MVC模式设计Web程序,可以将页面的显示、业务逻辑处理和流程控制很清晰地分离。JSP负责数据显示,JavaBean负责承载数据和处理业务逻辑,Servlet负责流程的控制。MVC模式充分体现了面向对象程序设计特有的"分层架构、组件复用、松耦合"的编程思想,完全满足大型Web应用开发的技术需求。
This paper analyzes the MVC structure Model of characteristics and advantages, to user registration login and data search engine components and design as the instance, from the data of the performance of the View layer, packaging business data and business logic Model layer and processing business logic and select View control layer the Angle, comprehensive, deeply sets forth the MVC pattern in JSP database application system development of the specific realiza- tion. MVC pattern design Web program, can will page display, business logic processing and process control very clearly separated, JSP is responsible for the data display, JavaBean is responsible for carrying data and processing business log- ic, Servlet responsible for process control. MVC mode embodies the object - oriented program design characteristic of "stratified structure, component reuse, loose coupling" programming ideas, fully meet the large Web application development technical requirements.
出处
《浙江交通职业技术学院学报》
CAS
2013年第1期34-40,共7页
Journal of Zhejiang Institute of Communications