摘要
研究Web应用中数据交换系统的设计模式.采用基于模型-视图-控制架构的struts架构,用ActionServlet类控制数据流转方向,ActionServlet类同时提供处理所有http请求的入口点.控制组件用相应的请求参数填充formbean,对数据进行有效性检测,检测通过后将参数传给Action类.EnterpriseJavaBeans实现所有数据交换的业务逻辑,对分布的数据资源进行访问和管理.Action类通过调用EnterpriseJavaBeans决定页面的选择.最后Action类把控制权交给后续的JSP文件,后者生成视图.这种设计模式将页面显示和业务逻辑分离开来,便于系统的开发和维护.
Investigates the design structure of a data exchange system in Web application. It makes use of a struts architecture based on the modelviewcontrol structure , and controls the direction of data flow on an actionservlet class, which offers an entrance for all http requests. The control component fills the corresponding parameters in the form bean, and the form bean validates these parameters. After success, the form bean sends these parameters to the action class. The Enterprise JavaBeans realize all the data exchange business and manage the distributed data resources. Then the action class decides to select the page in view by invoking enterprise Javabeans. Finally, the action class transfers the control power to the consequent JSP page, which generates the view. This design structure separates the business logic from the page, so it is of advantage in developing and maintaining the system.
出处
《北京理工大学学报》
EI
CAS
CSCD
北大核心
2003年第3期337-339,共3页
Transactions of Beijing Institute of Technology