1、 附录 3 JSP dynamic web technology JSP (JavaServer Pages) is initiated by Sun Microsystems, Inc., with many companies to participate in the establishment of a dynamic web page technical standards. JSP technology somewhat similar to ASP technology, it is in the traditional HTML pages in the document pa
2、ragraph inserted JAVA procedures (Scriptlet) and JSP tag (tag), thus JSP documents. Using JSP development of the Web application is cross-platform that can run on Linux, is also available for other operating systems. JSP technology to use the Java programming language prepared by the category of XML
3、 tags and scriptlets, to produce dynamic pages package processing logic. Page also visit by tags and scriptlets exist in the services side of the resources of logic. JSP page logic and web page design and display separation, support reusable component-based design, Web-based application development
4、is rapid and easy. Web server in the face of visits JSP page request, the first implementation of the procedures of, and then together with the results of the implementation of JSP documents in HTML code with the return to the customer. Insert the Java programming operation of the database can be re
5、-oriented websites, in order to achieve the establishment of dynamic pages needed to function. JSP and Java Servlet, is in the implementation of the server, usually returned to the client is an HTML text, as long as the client browser will be able to visit. JSP 1.0 specification of the final version
6、 is launched in September 1999, December has introduced 1.1 specifications. At present relatively new is JSP1.2 norms, JSP2.0 norms of the draft has also been introduced. JSP pages from HTML code and Java code embedded in one of the components. The server was in the pages of client requests after th
7、e Java code and then will generate the HTML pages to return to the client browser. Java Servlet JSP is the technical foundation and large-scale Web application development needs of Java Servlet and JSP support to complete. JSP with the Java technology easy to use, fully object-oriented, and a platfo
8、rm-independent and secure, mainly for all the characteristics of the Internet. JSP dynamic web site development and technology. Early dynamic web site development and technology using a CGI-BIN interface. Developers to write interfaces with the relevant procedures and a separate Web-based applicatio
9、ns, the latter through the Web server to call the former. This development technology there is a serious expansion of the problem - each new CGI procedural requirements on the server add a new process. If multiple users with access to the program, these processes will run out of the Web server all t
10、he resources available, until its collapse. In order to overcome the disadvantages of the proposed Microsoft Active Server Pages (ASP) technology, which use the plug-in and API simplifies Web application development. CGI and ASP compared to its advantages can include HTML tags, can directly access t
11、he database and the use of unlimited expansion of the ActiveX control, so the procedure on the preparation of a more flexible. But the technology is basically limited to Microsoft operating system platform, the main work environment is Microsofts IIS application structure, the ASP technology can not
12、 easily achieve cross-platform Web server program development. Hypertext Preprocessor (Hypertext Pre-processor), PHP dynamic web site development and technology similar to ASP, is also a kind of embedded in HTML document server-side scripting language. Most of its grammar and C, Java, Perl, and othe
13、r similar language and formed its own unique style, use of the language Web programmers can quickly develop dynamic pages. PHP in most Unix platforms, GUN / Linux and Microsoft Windows platform can run. PHPs main advantages are: ease of installation, the learning process simple database connection c
14、onvenience, compatibility strong expansion of the strong can object-oriented programming, and so on. However, PHP, there are some weaknesses, mainly PHP is an interpretation of language, not to support multi-threaded structure, the support platform and database connections are limited, especially in
15、 support of the standards with regard to inherent weaknesses, for some e-commerce applications , PHP is not appropriate. There are also technologies such as Java Servlets technology, make use of the technology can be easily prepared using the Java language interactive server-side code. A Java Servlets is a Java-based technology running on the server-side program (and Applet different, the latter running in the browser). Developers to write such a Java Servlets, to receive from the Web