【正文】
完成相對應(yīng)的工作,僅僅是 servlet并不能填滿您的工具箱。依據(jù)開發(fā)團(tuán)隊(duì)的大小,及項(xiàng)目的復(fù)雜程度,可以對靜態(tài) HTML和動態(tài)內(nèi)容進(jìn)行弱分離( weaker separation)和強(qiáng)分離( stronger separation)。 c. 可以對開發(fā)團(tuán)隊(duì)進(jìn)行劃分。 和單獨(dú)使用 servler 相比, JSP 提供下述好處: a. JSP 中 HTML 的編寫與維護(hù)更為簡單。因而,從根本上, JSP 頁面能夠執(zhí)行的任何任務(wù)都可以用 servler 來完成。隔幾個位置 ,是來自華盛頓一家大型軟件公司的高級經(jīng)理。服務(wù)器在頁面被客戶端請求以后對這些 Java 代碼進(jìn)行處理,然后將生成的 HTML 頁面返回給客戶端的瀏覽器。 JSP 與 Java Servlet 一樣,是在服務(wù)器端執(zhí)行的,通常返回該客戶端的就是一個 HTML 文本,因此客戶端只要有瀏覽器就能瀏覽。網(wǎng)頁還能通過 tags 和 scriptlets 訪問存在于服務(wù)端的資源的應(yīng)用邏輯。s Cookie, the use of the object request getCookies () method will be implemented in all client came to an array of Cookie objects in the form of order, to meet the need to remove the Cookie object, it is necessary to pare an array cycle Each target keywords. 外文翻譯 JSP JSP(JavaServer Pages)是由 Sun Microsystems 公司倡導(dǎo)、許多公司參與一起建立的一種動態(tài)網(wǎng)頁技術(shù)標(biāo)準(zhǔn)。s hard drive section of the text. Cookie allow a Web site on the user39。t understand servlet programming. 3. Some tasks are better acplished by servlets than by JSP. JSP is good at generating pages that consist of large sections of fairly well structured HTML or other character data. Servlets are better for generating binary data, building pages with highly variable structure, and performing tasks (such as redirection) that involve little or no output. 4. Some tasks are better acplished by a bination of servlets and JSP than by either servlets or JSP alone. Versus JavaScript JavaScript, which is pletely distinct from the Java programming language, is normally used to dynamically generate HTML on the client, building parts of the Web page as the browser loads the document. This is a useful capability and does not normally overlap with the capabilities of JSP (which runs only on the server). JSP pages still include SCRIPT tags for JavaScript, just as normal HTML pages do. In fact, JSP can even be used to dynamically generate the JavaScript that will be sent to the client. So, JavaScript is not a peting technology。t understand servlet programming. c. Some tasks are better acplished by servlets than by JSP. JSP is good at generating pages that consist of large sections of fairly well structured HTML or other character data. Servlets are better for generating bi nary data, building pages with highly variable structure, and performing tasks (such as redirection) that involve little or no output. d. Some tasks are better acplished by a bination of servlets and JSP than by either servlets or JSP alone. JSP technology strength (1) time to prepare, run everywhere. At this point Java better than PHP, in addition to systems, the code not to make any changes. (2) the multiplatform support. Basically on all platforms of any development environment, in any environment for deployment in any environment in the expansion. Compared ASP / PHP limitations are obvious. (3) a strong scalability. From only a small Jar documents can run Servlet JSP, to the multiple servers clustering and load balancing, to multiple Application for transaction processing, information processing, a server to numerous servers, Java shows a tremendous Vitality. (4) diversification and powerful development tools support. This is similar to the ASP, Java already have many very good development tools, and many can be free, and many of them have been able to run on a variety of platforms under. JSP technology vulnerable: (1) and the same ASP, Java is the advantage of some of its fatal problem. It is precisely because in order to crossplatform functionality, in order to extreme stretching capacity, greatly increasing the plexity of the product. (2) Java39。t provide any capabilities that couldn39。 it is a plementary is also possible to u