ssh三大框架的作用以及数据库连接(Three SSH framework and database connection).doc
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转载请标明出处.