java - What is the actual difference between MVC and MVC Model2 -
Just let me know what is the real difference between MVC and MVC model 2 in development
To clarify previous answers (add more clarification):
MVC2 is actually JSP Model2 architecture, JSP Unlike model 1:
The first Java technology for server-side web development was servlet . Writing applications with servlets were very similar to write CGI applications in Perl that all output was to be created as strings from within Java code .
It was very tedious and error prone, as well as there is no Java experience for web designers, making it very difficult to change the look and feel of pages generated by servlets.
strong> JSP . JSP, such as Microsoft ASP and popular scripting language PHP, treats everything as template text, but allows Java code to be inserted into a tag called Scriptlets and JSP expressions .
These people are allowed to work as server-side apps as they are with other popular scripting languages, but there were some drawbacks in it
- There was no separation of the concerns
- A script will contain any JavaScript code needed for the database code, business logic, HTML markup and final page rendering.
- The code was difficult to reuse as an automated test.
It became known as "Model 1" JSP programming.
The GUI code was a common technique to isolate different concerns, which was invented by Travagee Renskaug, for the Xerox, Smalltalk.
At some point it became clear that this technique can be adapted to get the same separation of Java e-applications.
To do this, the model layer is written as beans or plain old java objects (POSO), using circuits in the form of controllers, and then, when all is done to lift heavy loads, For the result and markup, the JSP is forwarded. Written and MVC architecture using the service and JVP applications, as the model 2 JSP programming.
Because this pattern was present in a different form before being used in servlet / JSP applications, it is sometimes referred to as Was "MVC2" There was some confusion with this name because it indicates that there is an MVC1 for servlet applications, which is not.
It is enough to say MVC only.
Comments
Post a Comment