A quick review on the MVC thought

Source: Internet
Author: User
a quick review on the Encyclopedia of MVC Ideas


The full name is the Model view controller, the models-view-controllers (Controller) abbreviation, a design pattern, which is a way to solve the problem and ideas


2 Purpose


The purpose of using MVC is to separate the implementation code for M and V, so that the same program can use different representations, and instruct the developer to decouple the data from the performance and improve the code, especially the reusability of the model part of the code.


3 composition


4 advantages


5 Nanyi Talk about MVC


If the MVC pattern is interpreted as a three-tier structure of "appearance", "mechanism", and "function/data", many human organizations can also use the MVC schema.


A mall, for example, can be divided into three parts. Part of the warehouse, is responsible for providing the goods, this is the "functional layer" (or "Data layer"), and the other part is the retail shop, responsible for the sale of goods, which is its "appearance layer", the two are "mechanism layer", including the counter and warehouse interaction between the mechanism.


After this distinction, the structure of the mall becomes very clear and can be optimized for different layers to improve efficiency


6 typical MVC


JSP + servlet + JavaBean mode



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.