【正文】
acter string output. In nature it divided the HTML content intoseveral portions and then inserted them into the CGI programs. After the appearance ofScript languages the way changed to insert the programs written by script languages intoHTML content. However these two ways had a mon deficiency that they could notseparate the programs from the HTML content absolutely. Therefore it is very difficult toimplement the MVC detached threelayer pattern based on these two ways. 2 Secondfunctions of the script languages are less weak. They lack some necessary technologies tosupport the MVC design pattern such as message mechanism and event responsemechanism. This situation did not get any improvement until the release of the JSP Model24. Depending on the powerful functions of Java language the JSP Model 2 implementsthe MVC design idea to some extent. Figure 1 shows the mechanism: Model the data layer: it is encapsulated into the Enterprise JavaBean. View the presentation layer: JSP is responsible for the presentation of pages such as the presentation format paging etc. Controller the control layer: Servlet receives the user input in pages and executes the relevant transaction calling the corresponding EJB modules then gives theresults to the relevant View so JSP can present these results. This mechanism of JSP Model 2 basically meets the developers’ requirements todetach the Web application transaction logic from the user interface. But some limits stillexist. For example although JSP Model 2 has implemented the basic idea of the MVCdesign pattern the relationship of these three layers Servlet JavaBean/EJB and JSP isstill close. Especially the Servlet which acts as the Controller not only controls theselection and call of Model’s modules but also is responsible for transferring data providedby modules to the corresponding JSP to handle. Because of this process Servlet has toimplement very plicated transaction logic by itself which is a tough problem for thesystem development and maintenance. Thus in the following Web application systemframe we will further divide the functions of the . Solution As show in Figure 2 this system frame contains three kernel control objects/classesSYSController Model Center and LPM Logical Page Module Center and their ownkernel database system description database