【正文】
t again and efficiently. The Servlet is to edit and translate of, so the code of JSP in the web page does not need when the every time requests that page is explain. The engine of JSP need to be edit and translate after Servlet the code end is modify only once, then this Servlet that editted and translate can be carry out. The in view of the fact JSP engine auto is born to edit and translate the Servlet also, need not procedure member begins to edit and translate the code, so the JSP can bring vivid sex that function and fast developments need that you are efficiently.Compared with the traditional CGI, the JSP has the equal advantage. First, on the speed, the traditional procedure of CGI needs to use the standard importation of the system to output the equipments to carry out the dynamic state web page born, but the JSP is direct is mutually the connection with server. And say for the CGI, each interview needs to add to add a progress to handle, the progress build up and destroy by burning constantly and willbe a not small burden for calculator of be the server of Web. The next in order, the JSP is specialized to develop but design for the Web of, its purpose is for building up according to the Web applied procedure, included the norm and the tool of a the whole set. Use the technique of JSP can bine a lot of JSP pages to bee a Web application procedure very expediently.譯 文介紹Java Server Pages(JSP)是一種基于web 的腳本編程技術(shù),類似于網(wǎng)景公司的服務(wù)器端Java 腳本語言serverside JavaScript(SSJS)和微軟的Active Server Pages(ASP)。和單獨(dú)使用servler相比,JSP提供下述好處:JSP中HTML的編寫與維護(hù)更為簡單。Servlet其實(shí)和傳統(tǒng)的CGI、ISAPI、NSAPI 等Web程序開發(fā)工具的作用是相同的,在使用Java Servlet以后,用戶不必再使用效率低下的CGI方式,也不必使用只能在某個(gè)固定Web 服務(wù)器平臺(tái)運(yùn)行的API 方式來動(dòng)態(tài)生成Web頁面。JSP把Java作為默認(rèn)的腳本語言,然而,就像ASP可以使用其他語言(如JavaScript和VBScript)一樣,JSP規(guī)范也允許使用其他語言。在腳本環(huán)境中書寫的表達(dá)邏輯被鎖在頁面內(nèi),只有通過剪切和粘貼才能被重用。Beans可以是JavaBeans或EJB組件。使用JSP技術(shù)可以很方便地將一大堆JSP頁面組合成為一個(gè)Web應(yīng)用程序。Java開發(fā)者不僅可以創(chuàng)建和使用JavaBeans,還能在JSP頁中使用Java語言來更精密地控制基于底層JavaBeans的表達(dá)邏輯。D. JSP的機(jī)制要理解JSP怎樣聯(lián)合以上各種所提到的技術(shù)的優(yōu)點(diǎn),來輕而易舉地實(shí)現(xiàn)各種效果,用戶必須首先了解“組件為中心的網(wǎng)頁開發(fā)”和“頁面為中心的網(wǎng)頁開發(fā)”的區(qū)別。甚至ASP(來自于前述經(jīng)理所在公司的一項(xiàng)產(chǎn)品)都在JSP 出現(xiàn)之前推廣了這種方式。我們總是希望用適當(dāng)?shù)墓ぞ咄瓿上鄬?duì)應(yīng)的工作,僅僅是servlet并不能填滿您的工具箱。因而,從根本上,JSP頁面能夠執(zhí)行的任何任務(wù)都可以用servler來完成。s usual embrace and extend strategy. At this point, Gosling lightheartedly interjected You mean disgrace and distend. Now, the grievance that Gosling was airing was that he felt that this pany would take technology from other panies and suborn it for their own purposes. But guess what? The shoe is on the other foot here. The Java munity did not invent the idea of designing pages as a mixture of static HTML and dynamic code marked with special tags. For example, Cold Fusion did it years earlier. Even ASP (a product from the very software pany of the aforementioned manager) popularized this approach before JSP came alongand decided to jump on the bandwagon. In fact, JSP not only adopted the general idea, it even used many of the same special tags as ASP did. The JSP is an establishment at the model of Java servlets on of the expression layer technique, it makes the plait write the HTML to bee more like the SSJS, it also allows you carry the static state HTML contents and servers the script mix to put together the born dynamic state exportation. JSP the script language that the Java is the tacit approval, however, be like the ASP and can use other languages( such as JavaScript andVBScript), the norm of JSP also allows to use other languages.C. JSP characteristicsIs a service according to the script language in some one language of the statures system this kind of discuss, the JSP should be see make is a kind of script language. However, be a kind of script language, the JSP seemed to be too strong again, almost can use all Javas in the JSP. Be a kind of according to text originally of, take manifestation as the central development technique, the JSP provided all advantages of the Java Servlet, and, when bine with a JavaBeans together, providing a kind of make contents and manifestation that simple way that logic separate. Separate the contents and advantage of logical manifestations is, the personnel who renews the page external appearance need not know the code of Java, and renew the JavaBeans personnel also need not be design the web pageof expert in hand, can use to take the page of JavaBeans JSP to define the template of Web, to build up a fr