基于J2EE的数据交换系统设计模式研究

A Data Exchange System Based on J2EE

  • 摘要: 研究Web应用中数据交换系统的设计模式.采用基于模型-视图-控制架构的struts架构,用ActionServlet类控制数据流转方向,ActionServlet类同时提供处理所有http请求的入口点.控制组件用相应的请求参数填充formbean,对数据进行有效性检测,检测通过后将参数传给Action类.EnterpriseJavaBeans实现所有数据交换的业务逻辑,对分布的数据资源进行访问和管理.Action类通过调用EnterpriseJavaBeans决定页面的选择.最后Action类把控制权交给

     

    Abstract: Investigates the design structure of a data exchange system in Web application. It makes use of a struts architecture based on the model view control 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.

     

/

返回文章
返回
Baidu
map