Template and JSP Technology

Source: Internet
Author: User

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.

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.