【正文】
server memory to call jspInit call _jspService Page first created Request a Yes Yes Yes Yes Yes 2 No No No No requests have After the server restart Request 3 No No Yes Yes Yes 4 No No No No requests have Page modified Request 5 Yes Yes Yes Yes Yes 6 No No No No requests have 。s acceptance and expansion (embrace and extend) strategy. At this point, Gosling casually interjected to say do you mean actually do not accept and does not expand (disgrace and distend). In this, Gosling39。 Servlet 在編譯后,載入到服務(wù)器的內(nèi)容中,初始化并執(zhí)行。因此: ? 如果要將使用 Swing 組件的 applet 放到網(wǎng)頁中,重要的是瀏覽器的Java 版本,和服務(wù)器的 Java 版本無關(guān)。 此外,業(yè)界對 JSP 和 Servlet 技術(shù)的巨大支持使得這兩項技術(shù)都有了巨大的進(jìn)步,從而減輕了對 JSP 的許多批評。使用擴(kuò)充 JSP 和 Servlet 技術(shù)的第三方工具,如 Apache Structs,是一種很好的思路,只要該工具帶來的好處能夠補(bǔ)償工具帶來的額外復(fù)雜性。 JavaScript 也可以用在服務(wù)器端,最因人注意的是 SUN ONE(以前的iPla)、 IIS 和 BroadVision 服務(wù)器。 JSP 擅長生成由大量組織有序的結(jié)構(gòu)化 HTML 或其他字符數(shù)據(jù)組成 的頁面。實際上, JSP 文檔在后臺被自動轉(zhuǎn)換成 Servlet。使用 JSP,動態(tài)部分是用 Java 編寫的 ,而非 VBScript 過其他 ASP 專有的語言 ,因此 JSP 更為強(qiáng)勁 ,更適合于要求組件重用的復(fù)雜應(yīng)用。 首先 ,JSP可以移植到多種操作系統(tǒng)和 Web服務(wù)器 ,您不必僅僅局限于部署在 Windows 和 IIS 上盡管核心 .NET 平臺可以在好幾種非 Windows 平臺上運行,但 ASP 這一部分不可以。甚至 ASP(來自于前述經(jīng)理所在公司的一項產(chǎn)品 )都在 JSP出現(xiàn)之前推廣了這種方式。針對項目中的某些請求,您可能會在 MVC 構(gòu)架下組合使用這兩項技術(shù)。即使對那些對 JSP 一無所知的HTML 工具,我們也可以使用,因為它們會忽略 JSP 標(biāo)簽( JSP tags)。JSP 技術(shù)概述 一、 JSP 的好處 二、 JSP 頁面最終會轉(zhuǎn)換成 servler。 四、 ? 能夠使用標(biāo)準(zhǔn)的網(wǎng)站開發(fā)工具。幾乎所有的項目都會同時用到這兩種技術(shù)。 ColdFusion 多年前就已經(jīng)這樣做了。 JSP 的優(yōu)勢體現(xiàn)在兩個方面。相對于這個版本 ,JSP在動態(tài)代碼方面擁有明顯的優(yōu)勢。 與純 Servlet 相比 原則上, JSP 并沒有提供 Servlet 不能完成的功能。 ( 3)一些任務(wù)用 Servlet 完成比用 JSP 來完成要好。因此,JavaScript 不是一項競爭技術(shù),它是一項補(bǔ)充技術(shù)。據(jù)我們的判斷,這樣做是錯誤的。 Web 應(yīng)用安全設(shè)置也同樣如此。但事實上瀏覽器并不了解服務(wù)器端的過程。 混淆轉(zhuǎn)換期間和請求期間 JSP 頁面需要轉(zhuǎn)換成 servlet。s HTML tools, we can use, because they ignore the JSP tags (JSP tags). 5, ? development team can be divided. Java programmers can engage in dynamic code. Web developers can focus on the manager, said layer (presentation layer) on the. For large projects, this division of paramount importance. Based on the size of the development team, and the plexity of the project can be static HTML and dynamic content for the weak separation of (weaker separation) and strong separation (stronger separation). 6, in this, this discussion does not allow you to stop using servlets, using only JSP. Almost all of the projects will be used both technologies simultaneously. Some of the request for the project, you may be used in bination under the MVC framework of these two techniques. We always want to use the proper tools to plete the corresponding work, only the ser vlet does not fill up your toolbox. 2, JSP advantage relative to peting technologies Many years ago, Marty was invited to participate in a software technology related to small (20 individuals) seminar. Do in the next Marty are James Gosling Java programming language inventor. Across several locations, is a large software pany from Washington, a senior manager. During the discussion, the seminar topics proposed by the Chairman of the Jini, which was a new Java technology. The President to the manager, asked about his thoughts. He went on to say that they will continue to focus the technology, if the technology bees popular, they will follow the pany39。s output did not arise. Confusion during the conversion period and the request JSP pages need to convert into a servlet. In the piled Servlet, load content to the server, initialize and execute. But every step of what happened when? To answer this question, we must remember the following two points: ? JSP page is only in the revised first time visit, will be converted into a servlet and pile。s C language design quality, and, and Java is similar, but are familiar with the core of C syntax and various tools for database programmers rarely. In addition, many developers still use the original version of the ASP. Compared to this version,