【正文】
java編程的編碼設(shè)計(jì)標(biāo)準(zhǔn)與規(guī)范,其使用的對(duì)象名、對(duì)象類型和命名約定應(yīng)該一致并規(guī)范化。 購(gòu)物車:這一部分利用 Browser 的 Cookie 和 Session 記憶功能,將用戶所購(gòu)買(mǎi)的商品進(jìn)行管理。在數(shù)據(jù)組織、系統(tǒng)功能、系統(tǒng)結(jié)構(gòu)上保留足夠的擴(kuò)充余地,便于今后的擴(kuò)充。 4. 系統(tǒng)的功能性需求 通用 WEB 應(yīng)用系統(tǒng),包括交易系統(tǒng)和管理系統(tǒng)兩個(gè)獨(dú)立的子系統(tǒng),主要包括:商品展示、 供貨商信息 、用戶管理、 訂單管理 、商品管理五個(gè)功能模塊。但去年 10 月后它推出了Enfinity,一個(gè)采用 JSP/Servlet 的電子商務(wù) Application Server,而且聲言不再開(kāi)發(fā)傳統(tǒng)軟件。而 PHP 則缺乏這種支持。 網(wǎng)上銷售系統(tǒng)的現(xiàn)狀 目前在國(guó)內(nèi) PHP 與 ASP 應(yīng)用最為廣泛。于是電 子商務(wù)開(kāi)始流行起來(lái),越來(lái)越多的商家在網(wǎng)上建起在線商店,向消費(fèi)者展示出一種新穎的購(gòu)物理念。 3.程序的兼容性 JSP中的動(dòng)態(tài)內(nèi)容可以各種形式進(jìn)行顯示,所以它可以為各種客戶提供服務(wù),即從使用 HTML/DHTML 的瀏覽器,到使用 WML的各種手提無(wú)線設(shè)備(例如,移動(dòng)電話和個(gè)人數(shù)字設(shè)備 PDA),再到使用 XML的 B2B應(yīng)用,都可以使用 JSP的動(dòng)態(tài)頁(yè)面。 基于 Java語(yǔ)言的 JSP技術(shù)具有很多其他動(dòng)態(tài)網(wǎng)頁(yè)技術(shù)所沒(méi)有 的特點(diǎn),具體表現(xiàn)在如下方面: 1.簡(jiǎn)便性和有效性 JSP 動(dòng)態(tài)網(wǎng)頁(yè)的編寫(xiě)與一般的靜態(tài) HTML 的網(wǎng)頁(yè)編寫(xiě)是十分相似的。以多線程方式執(zhí)行可以大大降低對(duì)系統(tǒng)的資源需求,提高系統(tǒng)的并發(fā)量及響應(yīng)時(shí)間。而這個(gè) 引擎本身也是一個(gè) Servlet。使用 jsp:include 標(biāo)準(zhǔn)動(dòng)作。有些信息是靜態(tài)的,永遠(yuǎn) 不會(huì)或很少會(huì)改變,如組織的 logo。 JavaScript 為創(chuàng)建用戶界面控件提供了一種腳本語(yǔ)言。如果 JspWriter 不溢出 , 寫(xiě)入的內(nèi)容將 被直接送入 ServletResponse 輸出流。 JSP 頁(yè)作者對(duì)于PrintWriter 或 OutputStream 相關(guān)的 ServletResponse 被禁止寫(xiě)直接寫(xiě)入。 JSP頁(yè)整體語(yǔ)義 JSP頁(yè)實(shí)施類定義一個(gè) _ jspService() 方法映射反應(yīng)對(duì)象的請(qǐng)求。如下: 能夠在任何 Web或應(yīng)用程序服務(wù)器上運(yùn)行。開(kāi)發(fā)人員能夠編寫(xiě)出這樣的 Servlet,以接收來(lái)自 Web瀏覽器的 HTTP請(qǐng)求,動(dòng)態(tài)地 生成響應(yīng)(可能要查詢數(shù)據(jù)庫(kù)來(lái)完成這項(xiàng)請(qǐng)求),然后發(fā)送包含 HTML或 XML文檔的響應(yīng)到瀏覽器。開(kāi)發(fā)人員編寫(xiě)與接口相關(guān)的單獨(dú)的程序,以及基于 Web的應(yīng)用程序,后者通過(guò) Web服務(wù)器來(lái)調(diào)用前者。 JSP的開(kāi)發(fā)背景及發(fā)展歷史 在萬(wàn)維網(wǎng)短暫的歷史中,萬(wàn)維網(wǎng)已經(jīng)從一個(gè)大部分顯示靜態(tài)信息的網(wǎng)絡(luò)演化到對(duì)股票進(jìn)行交易和進(jìn)行購(gòu)書(shū)操作的一個(gè)基礎(chǔ)設(shè)施。它以其簡(jiǎn)單易學(xué)、跨平臺(tái)的特性,在眾多動(dòng)態(tài) Web應(yīng)用程序設(shè)計(jì)語(yǔ)言中異軍突起,在短短幾年中已經(jīng)形成了一套完整的規(guī)范,并廣泛地應(yīng)用于電子商務(wù)等各個(gè)領(lǐng)域中。 [1] 武延軍 黃飛躍 . 精通 JSP 編程技術(shù) [M]. 北京:人民郵電出版社 . [2] 柏亞軍 . JSP 編程基礎(chǔ)及應(yīng)用實(shí)例集錦 [M].北京:人民郵電出版社 . [3] 清宏計(jì)算機(jī)工作室 .JSP 編程技巧 [M].北京:機(jī)械工業(yè)出版社 . [4] 周影 .網(wǎng)絡(luò)編程語(yǔ)言 JSP 實(shí)例教程 [M].北京:電子工業(yè)出版社 . [5] 陳海山 .深入 Java Servlet 網(wǎng)絡(luò)編程 [M].北京:清華大學(xué)出版社 . [6] 與網(wǎng)站開(kāi)發(fā)編程實(shí)戰(zhàn) [M].北京:科學(xué)出版社 . [7] Steven 技術(shù)內(nèi)幕 [M].北京:機(jī)械工業(yè)出版社 . [8] Phil Hanna .JSP 技術(shù)大全 [M].北京:機(jī)械工業(yè)出版社 . [9] Karl Moss. Java Servlet 開(kāi)發(fā)人員指南 [M].北京:清華大學(xué)出版社 .2020 [10] 吳斌 .趙有珍等 .SQL Server 2020 提高 [M].科學(xué)出版社 . 指導(dǎo)教師簽字: 教研室主任簽字: 年 月 日 大連交通大學(xué)信息工程 學(xué)院 畢業(yè)設(shè)計(jì) (論文 )進(jìn)度計(jì)劃與考核表 學(xué)生姓名 趙思陽(yáng) 專業(yè)班級(jí) 軟件工程 083 班 指導(dǎo)教師 王建 何丹丹 本課題其 他人員 無(wú) 題 目 基于 web 的在線考試系統(tǒng) 日 期 計(jì)劃完成內(nèi)容 完成情況 指導(dǎo)老師檢查簽字 第 1 周 擬訂《畢業(yè)論文進(jìn)度計(jì)劃與考核表》 第 2 周 完成實(shí)習(xí)或調(diào)研報(bào)告 第 3 周 提交外文文獻(xiàn)翻譯資料 第 4 周 系統(tǒng) 概要 設(shè)計(jì)階段 第 5 周 系統(tǒng) 詳細(xì) 設(shè)計(jì)階段 第 6 周 系統(tǒng) 編碼 實(shí)施 、 完成論文初稿 第 7 周 完成 系統(tǒng) 編碼 實(shí)施 第 8 周 系統(tǒng) 編碼 調(diào)試 、提交論文初稿 第 9 周 完成 系統(tǒng) 編碼 調(diào)試 、完善 畢業(yè) 論文 第 10 周 完成撰寫(xiě) 畢業(yè)設(shè)計(jì) 論文 編寫(xiě) 及代碼測(cè)試 第 11 周 完成論文終稿、準(zhǔn)備畢業(yè)論文打印、 裝訂 第 12 周 提交畢業(yè)論文終稿及代碼 第 13 周 完成畢業(yè)論文 第 14 周 畢業(yè)論文答辯 指導(dǎo)教師簽字: 年 月 日 注:“計(jì)劃完成內(nèi)容”由學(xué)生本人認(rèn)真填寫(xiě),其它由指導(dǎo)教師考核時(shí)填寫(xiě)。 要求: 每周和指導(dǎo)老師 至少見(jiàn)面溝通一次,回報(bào)課題進(jìn)展情況,接受老師詢問(wèn)。 按照軟件工程思想,獨(dú)立完成系統(tǒng)的設(shè)計(jì)和程序開(kāi)發(fā),完成代碼估計(jì) 2020 行左右。 于第 13 周提出畢業(yè)答辯申請(qǐng)并簽字。ll have to edit and repile the Servlet Java, even in logic has been able to run. Using this method, the dynamic content with the application of the page still need to develop skills. Obviously, what is needed is a industry to create dynamic content within the scope of the pages of the solution. This program will solve the current scheme are limited. As follows: The JSP technology is designed to meet such requirements. The JSP specification is a Web server, application server, trading system and develop extensive cooperation between the tool suppliers. From this standard to develop the existing integration and balance of Java programming environment (for example, Java Servlet and JavaBeans) support techniques and tools. The result is a kind of new and developing method based on Web applications, using ponentbased application logic page designers with powerful functions. Overall Semantics of a JSP Page A JSP page implementation class defines a _jspService() method mapping from the request to the response object. Some details of this transformation are specific to the scripting language used (see Chapter , “Scripting”). Most details are not language specific and are described in this chapter. The content of a JSP page is devoted largely to describing the data that is written into the output stream of the response. (The JSP container usually sends this data back to the client.) The description is based on a JspWriter object that is exposed through the implicit object out (see Section , “Implicit Objects”). Its value varies: Initially, out is a new JspWriter object. This object may be different from the stream object returned from (), and may be considered to be interposed on the latter in order to implement buffering (see Section , “The page Directive”). This is the initial out object. JSP page authors are prohibited from writing directly to either the PrintWriter or OutputStream associated with the ServletResponse. The JSP container should not invoke () until the time when the first portion of the content is to be sent to the client. This enables a number of uses of JSP, including using JSP as a language to “glue” actions that deliver binary content, or reliably forwarding to a servlet, or change dynamically the content type of the response before generating content. See Chapter , “Internationalization Issues”. Within the body of some actions, out may be temporarily reassigned to a different (nested) instance of a JspWriter object. Whether this is the case depends on the details of the action’s semantics. Typically the content of these temporary streams is appended to the stream previously referred to by out, and out is subsequently reassigned to refer to the previous (nesting) stream. Such nested streams are always buffered, and require explicit flushing to a nesting stream or their contents will be discarded. If the initial out JspWriter object is buffered, then depending upon the value of the autoFlush attribute of the page directive, the content of that buffer will either be automatically flushed out to the ServletResponse output stream to obviate overflow, or an exception shall be thrown to signal buffer overflow. If the