【正文】
特殊標簽。 ColdFusion 多年前就已經(jīng)這樣做了。 ” 在此 , Gosling 的抱怨顯示出,他感到這個公司會從其他公司那里拿走技術 ,用于他們自己的目的 .出人意料的是,形勢已經(jīng)完全不同 。 主席向該經(jīng)理詢問他的想法 .他 回答 說 ,雖然現(xiàn)在言之過早,但這看起來會是非常有前途的一項技術。隔幾個位置 ,是來自華盛頓一家大型軟件公司的高級經(jīng)理。為了解決 Java Servlet 的這種缺點, SUN 推出了 JSP。由于Java Servlet 內(nèi)部是以線程方式提供服務,不必對于每個請求都啟動一個進程,并且利用多線程機制可以同時為多個請求服務,因此 Java Servlet 效率非常高。許多 Web 服務器都支持 Servlet,即使不直接支持 Servlet 的 Web 服務器也可以通過附加的應用服務器和模塊來支持 Servlet。 Java Servlet 是 JSP 技術的基礎,而且大型的 Web 應用程序的開發(fā)需要 Java Servlet和 JSP配合才能完成, Servlet 這個名稱源于 Applet,現(xiàn)在國內(nèi)的翻譯方式很多,本 書為了避免誤會,決定直接采用 Servlet 而不做任何翻譯,讀者如果愿意,可以稱之為“小服務程序”。 JSP 的由來 Sun 公司的 JSP 技術,使 Web 頁面開發(fā)人員可以使用 HTML 或者 XML 標識來設計和格式化最終頁面。 在某些項目中,更適宜選用 servlet,而 針對項目中的某些請求, 我們 可能 會在 MVC 構架下組合使用這兩項技術。 大連交通大學 2021 屆本科生畢業(yè)設計(論文)外文翻譯 8 此處的討論并不是說人們應該放棄使用 servlet 而僅僅使用 JSP。對于大型的項目,這種劃分極為重要。 Java 程序員可以致力于動態(tài)代碼。即使 是 那些對 JSP 一無所知的 HTML 工具,我們也可以使用,因為它們會忽略 JSP 標簽( JSP tags)。 JSP 中可以使用常規(guī)的 HTML:沒有額外的反斜杠,沒有額外的雙引號,也沒有暗含的 Java 語法。畢竟,在特定平臺上能夠用 Java 編程語言完成的事情,同樣可以用匯編語言來完成,但是選擇哪種語言依舊十分重要。然而,這種底層的等同性并不意味著 servlet 和 JSP 頁面對于所有的情況都等同適 用。 JSP 頁面最終會轉(zhuǎn)換成 servlet。兩者都提供在 HTML 代碼中混合某種程序代碼、由語言引擎解釋執(zhí)行程序代碼的能力。 概述 JSP(Java Server Pages)是由 Sun Microsystems 公司倡導、許多公司參與一起建立的一種動態(tài)網(wǎng)頁技術標準,其在動態(tài)網(wǎng)頁的建設中有其強大而特別的功能。按照 Sun的說法, JSP 能夠適應市場上包括 Apache WebServer、 在內(nèi)的 85%的服務器產(chǎn)品。 在 Sun 正式發(fā)布 JSP(Java Server Pages)之后,這種新的 Web 應用開發(fā)技術很快引起了人們的關注。與SSJS 和 ASP 相比, JSP 具有更好的可擴展性,并且它不專屬于任何一家廠商或某一特定的 Web 服務器。 hand over with each other, and the manifestation result in dynamic state bornly, mixing with the HTML page of the static state HTML code. The Beans can be JavaBeans or module of EJBs. Moreover, the more plicated claim model can see make from is request other JSP pages of the page call sign or Java Servlets. The engine of JSP wants to chase the code of Java that the label of JSP, code of Java in the JSP page even all converts into the big piece together with the static state HTML contents actually. These codes piece was anized the Java Servlet that customer can not see to go to by the engine of JSP, then the Servlet edits and translate them automatically byte code of Java. Thus, the visitant that is the website requests a JSP page, under the condition of it is not knowing, an already born, the Servlet actual full general that prepared to edit and translate pletes all works, very concealment but 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 will be 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. 大連交通大學 2021 屆本科生畢業(yè)設計(論文)外文翻譯 7 JSP 的技術發(fā)展歷史 作者: Kathy Sierra and Bert Bates 來源: Servletamp。PHP3 → PHP4. In the JSP norm book, did not request the procedure in the JSP code part( be called the Scriptlet) and must write with the Java definitely. Actually, have some engines of JSP are adoptive other script languages such as the EMAC Script, etc., but actually this a few script languages also are to set up on the Java, edit and translate for the Servlet to carry out of. Write according to the norm of JSP, have no Scriptlet of relation with Java also is can of, however, mainly lie in the ability and JavaBeans, the Enterprise JavaBeanses because of the JSP strong function to work together, so even is the Scriptlet part not to use the Java, edit and translate of performance code also should is related with Java. MECHANISM To prehend the JSP how unite the technical advantage that above various speak of, e to carry out various result easily, the customer must understand the differentiation of the module develops for the web page of the center and the page develops for the web page of the center first. The SSJS and ASP are all in several year ago to release, the work of that time is still very young, no one knows to still have in addition to making all business, datas and the 大連交通大學 2021 屆本科生畢業(yè)設計(論文)外文翻譯 5 expression logic enter the original web page entirely heap what better solve the method. This kind of model that take page as the center studies and gets the very fast development easily. However, along with change of time, the people know that this kind of method is unwell in set up large, the Web that can upgrade applies the procedure. The expression logic write in the script environment was lock in the page, only passing to shear to slice and glue to stick then can drive heavy use. Express the logic to usually mix together with business and the data logics, when this makes be the procedure member to try to change an external appearance that applies the procedure but do not want to break with its llied business logic, apply the procedure of maintenance be like to walk the similar difficulty on the eggshell. In fact in the bu