【正文】
e 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 butneed 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 deal of label and a script terraces to use to e to show in the HTML page from the contents of JavaBeans creation or send a presentin return. Because of the property that regards the module as the center of the JSP, it can drive Java and not the developer of Java uses equally. Not the developer of Java can pass the JSP label( Tags) to use the JavaBeans that the deluxe developer of Java establish. The developer of Java not only can establish and use the JavaBeans, but also can use the language of Java to e to control more accurately in the JSP page according to the expression logic of the first floor JavaBeans.See now how JSP is handle claim of HTTP. In basic claim model, a claim directly was send to JSP page in. The code of JSP controls to carry on hour of the logic processing and module of JavaBeanses39。A. 概述JSP(Java Server Pages)是由Sun Microsystems公司倡導(dǎo)、許多公司參與一起建立的一種動(dòng)態(tài)網(wǎng)頁技術(shù)標(biāo)準(zhǔn),其在動(dòng)態(tài)網(wǎng)頁的建設(shè)中有其強(qiáng)大而特別的功能。畢竟,在特定平臺(tái)上能夠用Java編程語言完成的事情,同樣可以用匯編語言來完成,但是選擇哪種語言依舊十分重要。對(duì)于大型的項(xiàng)目,這種劃分極為重要。Java Servlet是JSP技術(shù)的基礎(chǔ),而且大型的Web應(yīng)用程序的開發(fā)需要JavaServlet和JSP配合才能完成,Servlet這個(gè)名稱源于Applet,現(xiàn)在國內(nèi)的翻譯方式很多,本書為了避免誤會(huì),決定直接采用Servlet而不做任何翻譯,讀者如果愿意,可以稱之為“小服務(wù)程序”。隔幾個(gè)位置,是來自華盛頓一家大型軟件公司的高級(jí)經(jīng)理。像SSJS一樣,它也允許你將靜態(tài)HTML 內(nèi)容與服務(wù)器端腳本混合起來生成動(dòng)態(tài)輸出。一般來說,在實(shí)際的JSP引擎中,JSP頁面在執(zhí)行時(shí)是編譯式,而不是解釋式的。然而,隨著時(shí)間的推移,人們認(rèn)識(shí)到這種方法不適于構(gòu)建大型的、可升級(jí)的Web應(yīng)用程序。這些技術(shù)使某領(lǐng)域內(nèi)的專家可以為本領(lǐng)域內(nèi)的垂直應(yīng)用編寫組件,而開發(fā)者可以直接拿來使用而不必掌握這一領(lǐng)域的專門技術(shù)。JSP代碼控制著進(jìn)行邏輯處理時(shí)與JavaBeans組件的交互,并在動(dòng)態(tài)生成的、混合了靜態(tài)HTML代碼的HTML頁中顯示結(jié)果。由于是JSP引擎自動(dòng)生成并編譯Servlet,不用程序員動(dòng)手編譯代碼,所以JSP能帶給你高效的性能和快速開發(fā)所需的靈活性。因?yàn)镾ervlet是編譯過的,所以網(wǎng)頁中的JSP代碼不需要在每次請(qǐng)求該頁時(shí)被解釋一遍。現(xiàn)在來看看JSP是如何處理HTTP請(qǐng)求的。與此同時(shí),人們一直在尋找建立Web應(yīng)用程序的更好方法,組件在客戶機(jī)/服務(wù)器領(lǐng)域流行起來。SSJS和ASP都是在幾年前推出的,那時(shí)網(wǎng)絡(luò)還很年輕,沒有人知道除了把所有的商務(wù)、數(shù)據(jù)和表達(dá)邏輯統(tǒng)統(tǒng)堆進(jìn)原始網(wǎng)頁中之外還有什么更好的解決方法。JavaBeans類完成數(shù)據(jù)提供,這樣在模板中就沒有Java代碼,這意味著這些模板可以由一個(gè)HTML編寫人員來維護(hù)。實(shí)際上,JSP不只采用了這種通用概念,它甚至使用許多和ASP相同的特殊標(biāo)簽。為了解決Java Servlet的這種缺點(diǎn),SUN 推出了JSP。B. JSP的由來Sun公司的JSP技術(shù),使Web頁面開發(fā)人員可以使用HTML或者XML標(biāo)識(shí)來設(shè)計(jì)和格式化最終頁面。Java程序員可以致力于動(dòng)態(tài)代碼。然而,這種底層的等同性并不意味著servler和JSP頁面對(duì)于所有的情況都等同適用。按照Sun 的說法,JSP 能夠適應(yīng)市場上包括Apache WebServer、%的服務(wù)器產(chǎn)品。t satisfy current the large electronic merce needs appliedly, traditional development techniques are all at to edit and translate the executive way change, such as the ASP → ASP+。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 S