MVC understanding?

Source: Internet
Author: User

(1) In MVC (model View Controller) M refers to the business model, V refers to the user interface (view), C is the controller, the purpose of using MVC is to separate the implementation code of the Model (M) and view (V) so that the same program can use a different representation. The purpose of the controller (C) is to ensure that the model (m) and view (v) are synchronized, and that once the model (m) changes, V should be updated synchronously.

(2) Model is a part of the logic used to process application data, and typically model objects are responsible for accessing data in the database.

(3) View is the part of the application that handles the display of data, and the view is typically created from model data.

(4) A controller is a part of an application that handles user interaction, typically the controller is responsible for reading data from the view, controlling user input, and sending data to the model.

(5) MVC layering helps manage complex applications, simplifies group development, and enables different developers to develop views, controller logic, and business logic at the same time.

(6) MVC separates the input, processing, and output of an application, and they each handle their own tasks. The most typical MVC is the JSP + Servlet + JavaBean pattern.

MVC understanding?

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.