摘要
研究了MVC(模块、视图、控制)模式的改进结构,该模式可以使业务逻辑与现实逻辑相分离,增强可维护性。以Java语言为基础探讨了使用Struts和XSLT相结合实现MVC,架构出具有良好的扩展性和伸缩性的基于Web的系统。介绍了Model1模型和Model2模型以及每个模型的优缺点,由此论述MVC模式所衍生出来的Model2x模型。实际应用表明该方法有助于提高代码的可重用性和灵活性,通过将问题划分为更小的组件,当技术空间或问题空间中出现变化时会有更多的机会重用代码,在实际项目应用中效果良好。
Some constructions of MVC( module, view and control)modes are introduced. The incarnation of the Struts with xsh in MVC is duscussed. It also mentions the advantages and disadvantages of Model 1 and Model 2. And the development of the expansible and retractile system is explained particularly based on the Web, using Java and xml language. It is useful for improving the re-using function and flexible performance of the codes. When same changes happen in the technical and problem space, through separating the question into the smaller parts, more and more chances will be had to re-use the codes.
出处
《控制工程》
CSCD
2005年第5期480-481,485,共3页
Control Engineering of China