1、 外文资料翻译 资料来源: www.InfoQ.com 文章名: JSP And WEB Technology 书 刊 名: Communications Technology 作 者: Damon Hougland, Aaron Tavistock 出版社: InfoQ, 2010.3 章 节: Chapter3 页 码: P34P45 文 章 译 名 : JSP 及其 WEB 技术 姓 名 : 学 号 : 指导教师 (职称 ): 专 业 : 计算机科学与技术(工程方向) 班 级 : 所 在 学 院 : 计算机科学与工程学院 外文原文 : JSP and WEB technology 1 J
2、SP Introduction JSP (JavaServer Pages) is a Java-based scripting technology. Is advocated by Sun Microsystems Inc., together with a number of companies involved in the establishment of a dynamic web page technology standards. JSP technology is somewhat similar to ASP technology, It is a traditional
3、HTML page file (*. htm, *. html) to insert Java program segment (Scriptlet) and JSP tag (tag), To form the JSP file( *jsp) . Web development with JSP is a cross-platform applications that can run under Linux, but also in other operating systems. In the JSP of the many advantages, one of which is tha
4、t it will be HTML encoded Web page from the business logic separated effectively. JSP access with reusable components, such as Servlet, JavaBean and Java-based Web applications. JSP also supports directly in the Web page embedded Java code. JSP can be used two ways to access documents: JSP documents
5、 sent by the browser request, the request sent to the Servlet. JSP technology uses Java programming language, XML-type tags and scriptlets, to have a package deal with the logic of dynamic pages. Page tags and scriptlets can also exist in the server access to the resources of the application logic.
6、JSP logic and Web page design and display isolated and support reusable component-based design, Web-based applications more quickly and easily developed. The Web server when meets visits the JSP homepage the request, first carries out segment, will then carry out the result code to return together w
7、ith JSP in the document HTML for the customer. The insertion Java segment may operate the database, again the directional homepage and so on, realizes the function which the establishment dynamic homepage needs. JSP and Java Servlet are the same, is in the server end execution, usually returns to th
8、is client side is a HTML text, therefore client side, so long as has the browser to be able to glance over. The JSP page is composed of the HTML code and the inserting Java code. The server in the page by the client side was requested that later will carry on processing to these Java code, will then
9、 produce the HTML page will return gives the client side the browser. Java Servlet is the JSP technology base, moreover the large-scale Web application procedures development needs Java Servlet and the JSP coordination can complete. JSP had the Java technology simply easy to use, complete object-ori
10、ented, had the platform independency, and safe reliable, mainly faced Internets all characteristics. 2 JSP computing technique To carry on the dynamic website conveniently fast the development, JSP has made the improvement in the following several aspects, causes it to become builds the cross platfo
11、rm fast the dynamic website first choice plan. 2.1 carries on the content production and the demonstration separates With the JSP technology, the Web page development personnel may use HTML or the XML marking design and the formatted final page, and uses the JSP marking or the tootsy produces on pag
12、es dynamic content originally. Production contents logic is sealed in marks and in the JavaBeans module, and ties up in the script, all scripts in server end movement. Because core logic is sealed in marks and in JavaBeans, therefore the Web administrative personnels and the page designer, can edit
13、and use the JSP page, but does not affect the content the production. In the server end, the JSP engine explained that the JSP marking and the script, produce the content which requested, and (or XML) pages form transmits the result by HTML the browser. This both are helpful in the author protects o
14、wn code, and can guarantee any based on the HTML Web browsers complete usability. 2.2 may entrust with heavy responsibility the module The overwhelming majority JSP page relies on may entrust with heavy responsibility, the cross platform module (JavaBeans or Enterprise the JavaBeans module) carries
15、out complex processing which the application procedure requests. The development personnel can share and exchange the execution ordinary operation the module, or causes these modules uses for more users and the customer association. Has accelerated the overall development process based on modules me
16、thod, and causes each kind of organization obtains balanced in their existing skill and in the optimized result development endeavor. 2.3 uses marking The Web page development personnel will not be the familiar script language programmers. The JSP technology has sealed many functions, these function
17、s are easy to use, marking to carry on the dynamic content production with JSP in the related XML to need. The standard JSP marking can visit and the instantiation JavaBeans module, the establishment or the retrieval module attribute, downloads Applet, as well as the execution difficulty with codes and the time -consuming function with other methods. 2.4 adapts the platform Nearly all platforms support Java, JSP+JavaBeans to be possible to pass unimpeded nearly under all platforms. Transplants from a platform to other