freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計(jì)算機(jī)專業(yè)java外文翻譯-其他專業(yè)-全文預(yù)覽

  

【正文】 一起發(fā)送給瀏覽器。 ㈠ JSP 與 ASP 的簡(jiǎn)單比較 JSP 與 Microsoft 的 ASP 技術(shù)非常相似。 1 JSP 基礎(chǔ)學(xué)習(xí)資料 一、 JSP 技術(shù)概述 在 Sun 正式發(fā)布 JSP(JavaServer Pages) 之后,這種新的 Web 應(yīng)用開發(fā)技術(shù)很快引起了人們的關(guān)注。即使您對(duì) ASP “一往情深 ”,我們認(rèn)為,關(guān)注 JSP 的發(fā)展仍舊很有必要。普通的 HTML 頁(yè)面只依賴于 Web 服務(wù)器,而 ASP 和 JSP 頁(yè)面需要附加的語(yǔ)言引擎分析和執(zhí)行程序代碼。此外, ASP 與 JSP 還有一個(gè)更為本質(zhì)的區(qū)別:兩種語(yǔ)言引擎用完全不同的方式處理頁(yè)面中嵌入的程序代碼。此處我們使用的是 Sun 的 JavaServer Web Development Kit ( JSWDK )。 在運(yùn)行 JSP 示例頁(yè)面之前,請(qǐng)注意一下安裝 JSWDK 的目錄,特別是 “ work ”子目錄下的內(nèi)容。因此,在瀏覽器中使用 “查看源文件 ”菜單是無(wú)法看到 JSP 源代碼的,只能看到結(jié)果 HTML 代碼。從下面的代碼清單中可以看到, JSP 頁(yè)面除了比普通 HTML 頁(yè)面多一些 Java 代碼外,兩者具有基本相同的結(jié)構(gòu)。 % % for (int i=1。 P %= str % P JSP 輸出之后。 JSP 指令由 % 開始, % 結(jié)束。 JSP 聲明由 %! 開始, % 結(jié)束。 位于 % 和 % 之間的代碼塊是描述 JSP 頁(yè)面處理邏輯的 Java 代碼,如本 3 例中的 for 循環(huán)所示。有多種方法可以用來(lái)解決這個(gè)問(wèn)題,如使用 Cookies 、隱藏的表單輸入域,或直接將狀態(tài)信息附加到 URL 中。例如 request 對(duì)象,它是 HttpServletRequest 的一個(gè)子類。與 ASP 中的會(huì)話對(duì)象相似, JSP 中的 session 對(duì)象對(duì)于那些希望通過(guò)多個(gè)頁(yè)面完成一個(gè)事務(wù)的應(yīng)用是非常有用的。由于 session 對(duì) 象在會(huì)話期間是一直有效的,因此這里保存的變量對(duì)后繼的頁(yè)面也有效。 (thename, name)。 % % food = (food)。這種支持不僅能縮短開發(fā)時(shí)間(可以直接利用經(jīng)測(cè)試和可信任的已有組件,避免了重復(fù)開發(fā)),也為 JSP 應(yīng)用帶來(lái)了更多的可伸縮性。它有兩個(gè)屬性,即 Product (產(chǎn)品)和 Rate (稅率)。 public class TaxRate { String Product。 } public void setProduct (String ProductName) { = ProductName。 } } 6 在 JSP 頁(yè)面中應(yīng)用上述 Bean 要用到 jsp:useBean 標(biāo)記。 (17)。 這個(gè) JSP 頁(yè)面不僅使用了 Bean 的 set 和 get 方法設(shè)置和提取屬性值,還用到了提取 Bean 屬性值的第二種方法,即使用 jsp:getProperty 標(biāo)記。 JSP 頁(yè)面看起來(lái)象普通 HTML 頁(yè)面,但它允許嵌入執(zhí)行代碼,在這一點(diǎn)上,它和 ASP 技術(shù)非常相似。s ability. In ASP and JSP environment, HTML code is mainly responsible for describe information display, and program code is used to describe handling logic. Normal HTML page only depends on the Web server and the ASP and JSP page need additional language engine analysis and implementation program code. The program code to be executing embedded into HTML code, then the message to all browsers. ASP and JSP are facing the Web server technology, the client browser does not need any additional software support. ASP programming language is VBScript such scripting language, JSP use is Java, this is both one of the most significant differences. In addition, ASP and JSP more essential difference: two languages in a totally different way engine handling page embedded program code. In the ASP, VBScript code is ASP engines interpret execution。 i++) { str = str + i。 % defines a String variable. In every statement behind must have a semicolon, just like in ordinary Java class declaration in the same member variables. Located in % and % between the code block is to describe the JSP page handling logic of Java code, such as the example shown the seas cycle. Finally, located in % = and % between code is called the JSP expression, such as the example of % = STR % below. The JSP expression provides a will JSP generated numerical embedded HTML pages of simple method. 2. The session state management The session state maintain is the Web application developers must face the problem. There are various ways can be used to solve this problem, if use Cookies, hidden form input domain, or directly to the URL in additional status information. Java Servlet provides a continuous effectively in multiple requests the conversation between objects, the object allows users to store and retrieve the session state information. The JSP also support Servlet of this concept. In the JSP from guidelines can see many relevant implied object instructions (implicit meaning is that these objects can directly referenced, do not need explicit statement, also do not need special code to create actually cases). For example that object, it is the HttpServletRequest a derived class. The object contains all the related current browse
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1