Traditional Culture Encyclopedia - Traditional culture - The difference between traditional WEB development mode and ajax development mode

The difference between traditional WEB development mode and ajax development mode

Therefore, this model is suitable for small-scale WEB application development.

Although the development of JSP+JavaBean has realized the separation of logic function and display function, the view layer and control layer are both realized by JSP pages, that is, the view layer and control layer are not separated, so they still belong to the Model 1 mode. Model2 mode-MVC development mode

It aims to overcome the shortcomings of 1. The specific meaning of MVC is: model+view+control, which means model+view+control. This model integrates JSP, Serclet and JavaBean, which is very suitable for the development of large-scale projects. View view layer:

The interface that represents interaction with users can be realized by html, xml, applet java program, etc. It is only responsible for data collection and processing (display). In JSP, it is only realized through JSP pages. Model model layer:

Often written in JavaBean, it accepts the data requested by the view layer, then carries out corresponding business processing and returns the final processing result. Its responsibility is the core, and it uses the characteristics of JavaBean to realize code reuse and expansion, which brings convenience to maintenance. Control control layer:

(1) Each layer has its own functions and does not interfere with each other. There is no interference to other layers after each update;

(2)MVC development mode is conducive to the division of responsibilities, allowing specialized personnel to engage in the design of specialized layers, thus improving work efficiency and quality;

(3) Components can be reused well. Because of the clear division of labor, the components of each layer can be separated into a reusable component.