JSP Learning notes: MVC development Model

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.