【正文】
任何一家廠商或某一特定的 Web 服務(wù)器。兩者都提供在 HTML 代碼中混合某種程序代碼、由語言引擎解釋執(zhí)行程序代碼的能力。 JSP 中可以使用常規(guī)的 HTML:沒有額外的反斜杠,沒有額外的雙引號,也沒有暗含的 Java 語法。 此處的討論并不是說人們應(yīng)該放棄使用 servlet 而僅僅使用 JSP。許多 Web 服務(wù)器都支持 Servlet,即使不直接支持 Servlet 的 Web 服務(wù)器也可以通過附加的應(yīng)用服務(wù)器和模塊來支持 Servlet。 主席向該經(jīng)理詢問他的想法 .他 回答 說 ,雖然現(xiàn)在言之過早,但這看起來會是非常有前途的一項技術(shù)。像 SSJS 一樣,它也允許你將靜態(tài) HTML 內(nèi)容與服務(wù)器端腳本混合起來生成動態(tài)輸出。 一般來說,在實際的 JSP 引擎中, JSP 頁面在執(zhí)行時是編譯式,而不是解釋式的。然而,隨著時間的推移,人們認識到這種方法不適于構(gòu)建大型的、可升 級的 Web 應(yīng)用程序。這些技術(shù)使某領(lǐng)域內(nèi)的專家可以為本領(lǐng)域內(nèi)的垂直應(yīng)用編寫組件,而開發(fā)者可以直接拿來使用而不必掌握這一領(lǐng)域的專門技術(shù)。 JSP 代碼控制著進行邏輯處理時與 JavaBeans 組件的交互,并在動態(tài)生成的、混合了靜態(tài) HTML 代碼的 HTML 頁中顯示結(jié)果。由于是 JSP 引擎自動生成并編譯 Servlet,不用程序員動手編譯代碼,所以 JSP 能帶給你高效的性能和快速開發(fā)所需的靈活性。 。因為 Servlet 是編譯過的,所以網(wǎng)頁中的 JSP 代碼不需要在每次請求該頁時被解釋一遍。 現(xiàn)在來看看 JSP 是如何處理 HTTP 請求的。 與此同時,人們一直在尋找建立 Web 應(yīng)用程序的更好方法,組件在客戶機 /服務(wù)器領(lǐng)域流行起來。 SSJS 和 ASP 都是在幾年前推出的,那時網(wǎng)絡(luò)還很年輕,沒有人知道除了把所有的商務(wù)、數(shù)據(jù)和表達邏輯統(tǒng)統(tǒng)堆進原始網(wǎng)頁中之外還有什么更好的解決方法。JavaBeans 類完成數(shù)據(jù)提供,這樣在模板中就沒有 Java 代碼,這意味著這些模板可以由一個 HTML 編寫人員來維護。實際上 ,JSP 不只采用了這種通用概念 ,它甚至使用許多和 ASP 相同的特殊標(biāo)簽。隔幾個位置 ,是來自華盛頓一家大型軟件公司的高級經(jīng)理。 Java Servlet 是 JSP 技術(shù)的基礎(chǔ),而且大型的 Web 應(yīng)用程序的開發(fā)需要 Java Servlet和 JSP 配合才能完成, Servlet 這個名稱源于 Applet,現(xiàn)在國內(nèi)的翻譯方式很多,本書 為了避免誤會,決定直接采用 Servlet 而不做任何翻譯,讀者如果愿意,可以稱之為“小服務(wù)程序”。對于大型的項目,這種劃分極為重要。畢竟,在特定平臺上能夠用 Java 編程語言完成的事情,同樣可以用匯編語言來完成,但是選擇哪種語言依舊十分重要。 概述 JSP(Java Server Pages)是由 Sun Microsystems 公司倡導(dǎo)、許多公司參與一起建立的一種動態(tài)網(wǎng)頁技術(shù)標(biāo)準,其在動態(tài)網(wǎng)頁的建設(shè)中有其強大而特別的功能。 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 organized 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. 7 JSP 的技術(shù)發(fā)展歷史 作者: Kathy Sierra and Bert Bates 來源: Servletamp。 1 THE TECHNIQUE DEVELOPMENT HISTORY OF JSP By:Kathy Sierra and Bert Bates Source: Servletamp。s machine/ server the realm. JavaBeans and ActiveX were published the pany to expand to apply the procedure developer for Java and Windows to use to e to develop the plicated procedure quickly by the fast application procedure development( RAD) tool. These techniques make the expert in the some realm be able to write the module for the perpendicular application plait in the skill area, but the developer can go fetch the usage directly but need not control the expertise of this realm. Be a kind of take module as the central development terrace, the JSP appeared. It with the JavaBeans and Enterprise JavaBeans( EJB) module includes the model of the business and the data logic for foundation, provide a great