【正文】
外文資料翻譯 資料來源: 文章名: JSP And WEB Technology 書 刊 名:《 Communications Technology》 作 者: Damon Hougland, Aaron Tavistock 出版社: InfoQ, 章 節(jié): Chapter3 頁 碼: P34~P45 文 章 譯 名 : JSP 及其 WEB 技術(shù) 姓 名 : 學(xué) 號(hào) : 指導(dǎo)教師 (職稱 ): 專 業(yè) : 計(jì)算機(jī)科學(xué)與技術(shù)(工程方向) 班 級(jí) : 所 在 學(xué) 院 : 計(jì)算機(jī)科學(xué)與工程學(xué)院 外文原文 : JSP and WEB technology 1 JSP Introduction JSP (JavaServer Pages) is a Javabased scripting technology. Is advocated by Sun Microsystems Inc., together with a number of panies involved in the establishment of a dynamic web page technology standards. JSP technology is somew hat similar to ASP technology, It is a traditional 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 crossplatform applications that can run under Linux, but also in other operating systems. In the JSP of the many advantages, one of w hich is that it will be HTML encoded Web page from the business logic separated effectively. JSP access with reusable ponents, such as Servlet, JavaBean and Javabased Web applications. JSP also supports directly in the Web page embedded Java code. JSP can be used two ways to access documents: JSP documents sent by the browser request, the request sent to the Servlet. JSP technology uses Java programming language, XMLtype 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. JSP logic and Web page design and display isolated and support reusable ponentbased design, Webbased applications more quickly and easily developed. The Web server w hen meets visits the JSP homepage the request, first carries out segment, will then carry out the result code to return together with 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 w hich the establishment dynamic homepage needs. JSP and Java Servlet are the same, is in the server end execution, usually returns to this 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 posed 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 produce the HTML page will return gives the client side the browser. Java Servlet is the JSP technology base, moreover the largescale Web application procedure39。s development needs Java Servlet and the JSP coordination can plete. JSP had the Java te chnology simply easy to use, plete objectoriented, had the platform independency, and safe reliable, mainly faced Inter39。s all characteristics. 2 JSP puting technique To carry on the dynamic website conveniently fast the development, JSP has made the improvement in the following several aspects, causes it to bee builds the cross platform fast the dynamic website first choice plan. 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 page39。s dynamic content originally. Production content39。s 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 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) page39。s form transmits the result by HTML the browser. This both are helpful in the author protects ow n code, and can guarantee a ny based on the HTML Web browser39。s plete usability. may entrust with heavy responsibility the module The overw helming majority JSP page relies on may entrust with heavy responsibility, the cross platform module (JavaBeans or Enterprise the JavaBeans module) carries out plex 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 ac celerated the overall development process based on module39。s method, and causes each kind of organization obtains balanced in their existing skill and in the optimized result development endeavor. uses marking The Web page development personnel will not be the familiar script language programmers. The JSP technology has sealed many functions, these functions 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