【正文】
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ù),類(lèi)似于網(wǎng)景公司的服務(wù)器端Java 腳本語(yǔ)言serverside JavaScript(SSJS)和微軟的Active Server Pages(ASP)。畢 業(yè) 設(shè) 計(jì)(論 文) 英 文 翻 譯課題名稱(chēng)系 部專(zhuān) 業(yè)班 級(jí)學(xué) 號(hào)姓 名指導(dǎo)教師2 0 年 月 日畢業(yè)設(shè)計(jì)外文翻譯原 稿Introduction The Java Server Pages( JSP) is a kind of according to web of the script plait distance technique, similar carries the script language of Java in the server of the Netscape pany of serverside JavaScript( SSJS) and the Active Server Pages( ASP) of the pares the SSJS and ASP to have better can expand sex, and it is no more exclusive than any factory or some one particular server of Web. Though the norm of JSP is to be draw up by the Sun pany of, any factory can carry out the JSP on own system. The After Sun release the JSP( the Java Server Pages) formally, the this kind of new Web application development technique very quickly caused the people39。JSP比SSJS和ASP具有更好的可擴(kuò)展性,并且它不專(zhuān)屬于任何一家廠(chǎng)商或某一特定的Web服務(wù)器。兩者都提供在HTML 代碼中混合某種程序代碼、由語(yǔ)言引擎解釋執(zhí)行程序代碼的能力。JSP中可以使用常規(guī)的HTML:沒(méi)有額外的反斜杠,沒(méi)有額外的雙引號(hào),也沒(méi)有暗含的Java語(yǔ)法。在此,這個(gè)討論并不是讓您停止使用servlets,只使用JSP。許多Web 服務(wù)器都支持Servlet,即使不直接支持Servlet的Web 服務(wù)器也可以通過(guò)附加的應(yīng)用服務(wù)器和模塊來(lái)支持Servlet?!痹诖? Gosling的抱怨顯示出,他感到這個(gè)公司會(huì)從其他公司那里拿走技術(shù),?這次鞋子穿在了另一只腳上。C. JSP 的特點(diǎn)按照腳本語(yǔ)言是服務(wù)于某一個(gè)子系統(tǒng)的語(yǔ)言這種論述,JSP應(yīng)當(dāng)被看作是一種腳本語(yǔ)言。在JSP規(guī)范書(shū)中,并沒(méi)有明確要求JSP中的程序代碼部分(稱(chēng)為Scriptlet)一定要用Java來(lái)寫(xiě)。表達(dá)邏輯通常和商務(wù)及數(shù)據(jù)邏輯混在一起,這使得當(dāng)程序員試圖改變一個(gè)應(yīng)用程序的外觀(guān)而不想破壞與之緊密結(jié)合的商務(wù)邏輯時(shí),應(yīng)用程序的維護(hù)就像在蛋殼上走路一樣困難。它以JavaBeans和EnterpriseJavaBeans(EJB)組件包含商務(wù)和數(shù)據(jù)邏輯的模型為基礎(chǔ),提供大量標(biāo)簽和一個(gè)腳本平臺(tái)用來(lái)在HTML頁(yè)中顯示由JavaBeans產(chǎn)生或回送的內(nèi)容。另外,更加復(fù)雜的請(qǐng)求模型可看作從被請(qǐng)求頁(yè)呼叫其他JSP頁(yè)或JavaServlets。首先,在速度上,傳統(tǒng)的CGI程序需要使用系統(tǒng)的標(biāo)準(zhǔn)輸入輸出設(shè)備來(lái)實(shí)現(xiàn)動(dòng)態(tài)網(wǎng)頁(yè)的生成,而JSP是直接和服務(wù)器相關(guān)聯(lián)的。其次,JSP是專(zhuān)門(mén)為Web開(kāi)發(fā)而設(shè)計(jì)的,其目的是為了建立基于Web的應(yīng)用程序,包含了一整套的規(guī)范和工具。這些代碼塊被JSP引擎組織到用戶(hù)看不到的Java Servlet中去,然后Servlet自動(dòng)把它們編譯成Java字節(jié)碼。非Java開(kāi)發(fā)者可以通過(guò)JSP 的標(biāo)簽(Tags)來(lái)使用高級(jí)Java開(kāi)發(fā)者創(chuàng)建的JavaBeans。HTML和圖形設(shè)計(jì)師把它們的設(shè)計(jì)的實(shí)施工作交給了Web編寫(xiě)者,使他們不得不加倍工作——常常是手工編寫(xiě),因?yàn)闆](méi)有合適的工具可以把服務(wù)器端腳本與HTML內(nèi)容結(jié)合起來(lái)。按照J(rèn)SP規(guī)范書(shū)寫(xiě),和Java沒(méi)有任何關(guān)系的Scriptlet也是可以的,不過(guò),由于JSP的強(qiáng)大功能主要在于能和JavaBeans、Enterprise JavaBeans一起工作,所以即使是Scriptlet部分不使用Java,編譯成的執(zhí)行代碼也應(yīng)該是與Java相關(guān)的。作為一種基于文本的、以顯示為中心的開(kāi)發(fā)技術(shù),JSP提供了Java Servlet的所有好處,并且,當(dāng)與一個(gè)JavaBeans類(lèi)結(jié)合在一起時(shí),提供了一種使內(nèi)容和顯示邏輯分開(kāi)的簡(jiǎn)單方式。ColdFusion多年前就已經(jīng)這樣做了。由于Java Servlet 內(nèi)部是以線(xiàn)程方式提供服務(wù),不必對(duì)于每個(gè)請(qǐng)求都啟動(dòng)一個(gè)進(jìn)程,并且利用多線(xiàn)程機(jī)制可以同時(shí)為多個(gè)請(qǐng)求服務(wù),因此Java Servlet效率非常高。針對(duì)項(xiàng)目中的某些請(qǐng)求,您可能會(huì)在MVC構(gòu)架下組合使用這兩項(xiàng)技術(shù)。即使對(duì)那些對(duì)JSP一無(wú)所知的HTML工具,我們也可以使用,因?yàn)樗鼈儠?huì)忽略JSP標(biāo)簽JSP tags。JSP 頁(yè)面最終會(huì)轉(zhuǎn)換成servler。在Sun 正式發(fā)布JSP(Java Server Pages)之后,這種新的Web 應(yīng)用開(kāi)發(fā)技術(shù)很快引起了人們的關(guān)注。t do any translation, if reader would like to, can call it as small service procedure. The Servlet is similar to traditional CGI, ISAPI, NSAPI etc. Web procedure development the function of the tool in fact, at use the Java Servlet hereafter, the customer need not use again the lowly method of CGI of efficiency, also need not use only the ability e to born page of Web of dynamic state in the method of API that a certain fixed Web server terrace circulate. Many servers of Web all support the Servlet, even not support the Servlet server of Web directly and can also pass the additional applied server and the mold pieces to support the Servlet. Receive benefit in the characteristic of the Java crossplatform, the Servlet is also a terrace irrelevant, actually, as long as match the norm of Java Servlet, the Servlet is plete to have nothing to do with terrace and is to have nothing to do with server of Web. Because the Java Servlet is internal to provide the service by the line distance, need not start a progress to the each claimses, and make use of the multithreading mechanism can at the same time for several claim service, therefore the efficiency of Java Servlet is very high. But the Java Servlet also is not to has no weakness, similar to traditional CGI, ISAPI, the NSAPI method, the Java Servlet is to make use of to output the HTML language sentence to carry out the dynamic state web page of, if develop the whole