JSP Learning Note: The MVC development Pattern 2017-10-12 22:17:33 Model (Javabe) interacts with the model layer by interacting with the view layer (view layer, HTML.JSP) controller (control layer, handling user-submitted information)
MVC is a layered structure of design ideas, not a ready-made method, in different development environments have different means of implementation. which
① "M" is the model layer, which is usually responsible for the establishment of database model;
② "V" is the view layer, which is mainly responsible for the display of the interface and the interaction with the user;
③ "C" (Controller) is the control layer, which is responsible for the processing of business logic and the control of program flow. This layer is the bridge between the model layer and the view, which can dispatch the user's request and select the appropriate view for display, as well as interpreting the user's input data and mapping them to the actions that the model layer could perform.
In Jsp+javabean+servlet development mode, JSP is the view layer, JavaBean is the model layer, and the servlet is the control layer. Three parts of the independent completion of their respective functions, only the transfer of data between each other, without functional crossover, can well realize the low coupling of the program, high reusability and applicability. The MVC design pattern implemented by Jsp+javabean+servlet is shown in 4.3.
JSP Learning notes: MVC development Model