Introduction to Program Architecture and MVC

Source: Internet
Author: User

Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.

Introduction to Program Architecture and MVC

b/s Server-----Browser

c/s Server-----Client

The heavy server light client is the BS architecture! A browser is a light client. Everything in her is loaded down from the server! You don't have to install any plugins! Heavy servers are everything you use on the server! Server Pressure heavy!

Program Architecture:

JS schema is the database code, logic code, HTML code, EL, JSTL are written on the page

JS + servlet Js+jstl+el and so on Do interface Servlet is used to do database connection logical data validation

Js+servlet+javaclass Js+el+jstl used to do interface Servlet to do data validation javaclass used to do logic and database operations

The servlet needs tomcat after all .... Container to run if we do not use the servlet in the future then you this program JS and Javaclass can also be used without pushing to redo! The level of detail a little easier to change after maintenance!

Mvc

M-Model V-View C controller specifically designed to handle Spider-type interactions Speaking of my web page is now very chaotic Jsp1 jump jsp2 jsp3 Jump jsp4 ... Such as

MVC is like a repeater. What page do you want to jump to tell the controller to let the controller to deal with so that you do not have to maintain what page jump directly to change the controller on the line! Such as:

Model1: Views >> controllers >> models >> views

For example, the form of the Web page you click Submit submitted to the Controller and then by the Controller to submit your submitted form to Servlet/filter and then your servlet/filert back to the page!

Model2: Views >> controllers >> models >> controllers >> views

such as the form of the Web page you click Submit submit to the controller above control to register the submission controller in the model model to get the data to determine whether the data is legitimate and then put the data on the return controller and then the Controller response page to the page!

The STRUTS2 framework and the SPRINGMVC framework both implement the MVC2 pattern and use their framework to implement MVC patterns without their own handwriting!

Three-tier architecture is a three-tier architecture MVC is MVC, and they're not going to get involved. MVC can only count as a layer in a three-tier architecture

Introduction to Program Architecture and MVC

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.