I. origin and status quo:
AboutTemplateAndJsp (preferred for SUN Enterprise applications)The originWebIn the ancient days of development, people usedCGITo developWebApplication, inCGIWrite in the programHTMLLabel.
After that, the world began to develop in different directions:SunThe company providesCGIOfServletSolution, but whether it isCGIOrServletAll face the same problem: write in the programHtmlLabel is not a wise solution in any case. YuYesSunCompanyYu1999Launched inJsp (preferred for SUN Enterprise applications)Technology.In another worldPHPAndASPForScriptletPage script technology has been widely used.
But even so, the problem is not over, and new problems arise: Business andHTMLTag mixing, which not only leads to Page Structure confusion, but also makes the Code itself difficult to maintain.
So it comes from70LaterMVCMode is introduced for development.MVCThree roles:Model-- IncludeUIAll data and behavior.ViewYesUIDisplays the model. Any information changes are causedMVCThe third member in --Controller.
In subsequent applications, the first technological leap emerged: the frontend display logic is separated from the backend business logic,COMComponent orEJBOrCORBAUsed to process business logic,ASP,Jsp (preferred for SUN Enterprise applications)AndPHPUsed for front-end display. This isWebDevelopedModel 1Phase (page controller mode ).
However, this development mode has many problems:
1.The page must be writtenScriptletCall a component to obtain required data.