论文部分内容阅读
复杂的WEB应用程序要求采用模型-视图-控制器(MVC)设计模式的思想,MVC将应用设计分为多层,减弱了业务逻辑接口和数据接口之间的耦合。本文给出了MVC在J2EE框架下的实现,重点提出了在实际工程当中采用两层控制器的具体实现方式。实践证明对于包含了大量关系复杂视图的应用,两层控制器的实现方式效果是很理想的。
Complex Web applications require the idea of a model-view-controller (MVC) design pattern that splits the application design into multiple layers and weakens the coupling between the business logic interface and the data interface. This article gives the realization of MVC under the framework of J2EE, and puts forward the concrete implementation of adopting two-layer controller in actual project. Practice has proved that the application of a large number of complex relationships between the two-tier controller to achieve the effect is very satisfactory.