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
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.
- Related articles
- Is Anhui Health Logistics a Black Company?
- Is it better to float or stand while fishing?
- 2023 Henan Lunar New Year's Eve Spring Festival Gala Watching Guide (2021 Lunar New Year's Eve Spring Festival Gala Program List)
- Where is the copyright of lotus lantern?
- What are the traditional Chinese festivals, seek the date is the lunar calendar, and have a poem
- What are the application scenarios of IoT technology
- New Chinese Garden IllustratedŲInheritance of the Grand View Garden, let the home grow in nature
- The Origin and Customs of Spring Festival in China
- Wear-resistant steel plate standard
- What are the main parameters and methods for the evaluation of film and television product placement?