下载此文档

ssh三大框架的作用以及数据库连接(Three SSH framework and database connection).doc


文档分类:IT计算机 | 页数:约7页 举报非法文档有奖
1/7
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/7 下载此文档
文档列表 文档介绍
ssh三大框架的作用以及数据库连接(Three SSH framework and database connection)
A. Detailed analysis of the role of spring+hibernate+struts?
1. Struts is the presentation layer of the framework, and Struts is the concrete implementation of the MVC framework
MVC three layer structure of Struts:
(1) view layer: Struts uses JSP as the view of MVC. Each view is based on a custom tag library's JSP page, which is provided by the Struts framework. All forms elements are encoded with custom tags, so these pages can interact easily with the controller. Each form is mapped to the Servlet request to point to the controller specific entry point by mapping the JSP to the request.
(2) control layer: the controller is Java Servlet, provided by the Struts framework, which is responsible for the interaction between the view and the model. Each entry point of the controller is set by the configuration file named struts-. The file maps the request from the view to a specific Java class for the corresponding processing, and the controller also specifies the location of the next view.
(3) model layer: JavaBean is the representation of the model. For each entry point of the controller, the function of Bean is to store the information obtained from the view, and also called the action class, and a Java class is specified to take action on the form input. Action Class implements business
logic.
Here

ssh三大框架的作用以及数据库连接(Three SSH framework and database connection) 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数7
  • 收藏数0 收藏
  • 顶次数0
  • 上传人rjmy2261
  • 文件大小21 KB
  • 时间2017-11-23