摘要
在J2EE应用中,使用层架构已经非常普遍。Struts是实现MVC模型最成熟的框架,它与J2EE常常同时使用。应该从J2EE体系结构的角度,充分考虑使用Struts框架的特殊性,考虑结合Struts和J2EE体系结构过程中的性能和伸缩性问题。充分认识Struts框架中组件的功能和层次,以及Struts框架层在整个系统架构中的层次,是开发具有健壮性和可扩展性系统的基础。文中讨论了如何开发基于Struts的J2EE多层应用,从软件层次结构的角度考虑了在此过程中应该注意的问题,包括Struts的Action与Model、值对象与ActionFormBean以及伸缩性和性能问题。使用J2EE模式来解决这些问题,并运用到实际项目中,取得了较好的效果。
It's popular to develop J2EE applications with tiers architecture.And Struts is the most full-blown framework realizing MVC model.Both are often used together.It should fully take account of speciality of using Struts framework,performance and scalability joining Struts and J2EE,from the point of J2EE architecture.It's the basis of developing a robust and scalable system to fully understand the function and architecture of kits in Struts framework,and layer of Struts framework in a whole system.This article has discussed how to develop J2EE hierarchical applications based on Struts framework, and from the point of software layers thought over problems in the process of developing applications,including Action and Model of Struts, value objects and ActionForm Bean,and the problem of scalability and performance as well.It has solved these problems using J2EE patterns,and the results are used in practical projects effectively.
出处
《微机发展》
2005年第5期14-17,共4页
Microcomputer Development
基金
国家973计划项目(2002CB312002)