【正文】
s concern. JSP provided a special development environment for the Web application that establishes the high dynamic state. According to the Sun parlance, the JSP can adapt to include the Apache WebServer, on the market at inside of 85% server product.This chapter will introduce the related knowledge of JSP and Databases, and JavaBean related contents, is all certainly rougher introduction among them basic contents, say perhaps to is a Guide only, if the reader needs the more detailed information, pleasing the book of consult the homologous JSP. GENERALIZEThe JSP(Java Server Pages) is from the pany of Sun Microsystems initiate, the many panies the participate to the build up the together of the a kind the of dynamic the state web the page technique standard, the it have the it in the construction the of the dynamic state the web page the strong but the do not the especially of the function. JSP and the technique of ASP of the Microsoft is very alike. Both all provide the ability that mixes with a certain procedure code and is explain by the language engine to carry out the procedure code in the code of HTML. Underneath we are simple of carry on the introduction to it.JSP pages are translated into servlets. So, fundamentally, any task JSP pages can perform could also be acplished by servlets. However, this underlying equivalence does not mean that servlets and JSP pages are equally appropriate in all scenarios. The issue is not the power of the technology, it is the convenience, productivity, and maintainability of one or the other. After all, anything you can do on a particular puter platform in the Java programming language you could also do in assembly language. But it still matters which you choose.JSP provides the following benefits over servlets alone: ? It is easier to write and maintain the HTML. Your static code is ordinary HTML: no extra backslashes, no double quotes, and no lurking Java syntax. ? You can use standard Website development tools. Even HTML tools that know nothing about JSP can be used because they simply ignore the JSP tags. ? You can divide up your development team. The Java programmers can work on the dynamic code. The Web developers can concentrate on the presentation layer. On large projects, this division is very important. Depending on the size of your team and the plexity of your project, you can enforce a weaker or stronger separation between the static HTML and the dynamic content.Now, this discussion is not to say that you should stop using servlets and use only JSP instead. By no means. Almost all projects will use both. For some requests in your project, you will use servlets. For others, you will use JSP. For still others, you will bine them with the MVC architecture . You want the appropriate tool for the job, and servlets, by themselves, do not plete your toolkit. SOURCE OF。附錄2 外文參考文獻(xiàn)(原文)THE TECHNIQUE DEVELOPMENT HISTORY OF JSPBy:Kathy Sierra and Bert BatesSource: Servletamp。像SSJS一樣,它也允許你將靜態(tài)HTML內(nèi)容與服務(wù)器端腳本混合起來(lái)生成動(dòng)態(tài)輸出。實(shí)際上,JSP不只采用了這種通用概念,它甚至使用許多和ASP相同的特殊標(biāo)簽。ColdFusion多年前就已經(jīng)這樣做了?!痹诖? Gosling的抱怨顯示出,他感到這個(gè)公司會(huì)從其他公司那里拿走技術(shù),,形勢(shì)已經(jīng)完全不同。,雖然現(xiàn)在言之過(guò)早,但這看起來(lái)會(huì)是非常有前途的一項(xiàng)技術(shù)。隔幾個(gè)位置,是來(lái)自華盛頓一家大型軟件公司的高級(jí)經(jīng)理。為了解決Java Servlet的這種缺點(diǎn),SUN推出了JSP。由于Java Servlet內(nèi)部是以線程方式提供服務(wù),不必對(duì)于每個(gè)請(qǐng)求都啟動(dòng)一個(gè)進(jìn)程,并且利用多線程機(jī)制可以同時(shí)為多個(gè)請(qǐng)求服務(wù),因此Java Servlet效率非常高。許多Web服務(wù)器都支持Servlet,即使不直接支持Servlet的Web服務(wù)器也可以通過(guò)附加的應(yīng)用服務(wù)器和模塊來(lái)支持Servlet。Java Servlet是JSP技術(shù)的基礎(chǔ),而且大型的Web應(yīng)用程序的開(kāi)發(fā)需要Java Servlet和JSP配合才能完成,Servlet這個(gè)名稱源于Applet,現(xiàn)在國(guó)內(nèi)的翻譯方式很多,本書(shū)為了避免誤會(huì),決定直接采用Servlet而不做任何翻譯,讀者如果愿意,可以稱之為“小服務(wù)程序”。 JSP的由來(lái)Sun公司的JSP技術(shù),使Web頁(yè)面開(kāi)發(fā)人員可以使用HTML或者XML標(biāo)識(shí)來(lái)設(shè)計(jì)和格式化最終頁(yè)面。在某些項(xiàng)目中,更適宜選用servlet,而針對(duì)項(xiàng)目中的某些請(qǐng)求,我們可能會(huì)在MVC構(gòu)架下組合使用這兩項(xiàng)技術(shù)。此處的討論并不是說(shuō)人們應(yīng)該放棄使用servlet而僅僅使用JSP。對(duì)于大型的項(xiàng)目,這種劃分極為重要。Java程序員可以致力于動(dòng)態(tài)代碼。即使是那些對(duì)JSP一無(wú)所知的HTML工具,我們也可以使用,因?yàn)樗鼈儠?huì)忽略JSP標(biāo)簽(JSP tags)。JSP中可以使用常規(guī)的HTML:沒(méi)有額外的反斜杠,沒(méi)有額外的雙引號(hào),也沒(méi)有暗含的Java語(yǔ)法。畢竟,在特定平臺(tái)上能夠用Java編程語(yǔ)言完成的事情,同樣可以用匯編語(yǔ)言來(lái)完成,但是選擇哪種語(yǔ)言依舊十分重要。然而,這種底層的等同性并不意味著servlet和JSP頁(yè)面對(duì)于所有的情況都等同適用。JSP頁(yè)面最終會(huì)轉(zhuǎn)換成servlet。兩者都提供在HTML代碼中混合某種程序代碼、由語(yǔ)言引擎解釋執(zhí)行程序代碼的能力。 概述JSP(Java Server Pages)是由Sun Microsystems公司倡導(dǎo)、許多公司參與一起建立的一種動(dòng)態(tài)網(wǎng)頁(yè)技術(shù)標(biāo)準(zhǔn),其在動(dòng)態(tài)網(wǎng)頁(yè)的建設(shè)中有其強(qiáng)大而特別的功能。按照Sun的說(shuō)法,JSP能夠適應(yīng)市場(chǎng)上包括Apache WebServer、%的服務(wù)器產(chǎn)品。 在Sun正式發(fā)布JSP(Java Server Pages)之后,這種新的Web應(yīng)用開(kāi)發(fā)技術(shù)很快引起了人們的關(guān)注。與SSJS和ASP相比,JSP具有更好的可擴(kuò)展性,并且它不專屬于任何一家廠商或某一特定的Web服務(wù)器。致 謝參考文獻(xiàn)[1] 孫琳、李素芬. 計(jì)算機(jī)應(yīng)用研究[J]. 計(jì)算機(jī)技術(shù)與發(fā)展 ,2006,16(4):209211,214[2] 孫東衛(wèi),張冀紅,李聲利. 數(shù)據(jù)庫(kù)訪問(wèn)技術(shù)研究[J].,18(5).2034.[3] 飛思科技產(chǎn)品研發(fā)中心.JSP應(yīng)用開(kāi)發(fā)詳解(第二版)[M].北京:電子工業(yè)出版社,2004[4] 趙川,丁志剛,宗宇偉等. 基于Eclipse的測(cè)試工具管理平臺(tái)構(gòu)建[J]. 軟件世界, 2006年 14期:7879[5] 張樹(shù)亮, +SQL Server網(wǎng)絡(luò)應(yīng)用系統(tǒng)開(kāi)發(fā)案例精解[M].北京:清華大學(xué)出版社,2006 [6] 孫衛(wèi)琴、李洪成.Tomcat與Java Web開(kāi)發(fā)技術(shù)詳解[M].北京:電子工業(yè)出版社,2004[7] [J].許昌學(xué)院學(xué)報(bào),2006,25(5):7780.[8] 王付娟. MVC設(shè)計(jì)模型[J]. 硅谷, 2009(7):29.[9] 薩師煊,王珊.?dāng)?shù)據(jù)庫(kù)系統(tǒng)概論(第三版) [M].北京:高等教育出版社, 2000[10] 任永功,王政軍. 軟件技術(shù)與數(shù)據(jù)庫(kù)[J]. 計(jì)算機(jī)工程 ,2006,32(5):6062,134[11] 張寧,吳捷,楊卓,張濤. 基于SQL Server的腦電數(shù)據(jù)庫(kù)的構(gòu)建[J]. 廣西科學(xué)院學(xué)報(bào) ,2006 22(4):275278[12] 張紅梅,王磊. 在JSP中訪問(wèn)數(shù)據(jù)庫(kù)的方法[J]. 農(nóng)業(yè)圖書(shū)情報(bào)學(xué)刊, 2006,18(12):142144[13] 張紅梅,王磊. 計(jì)算機(jī)及網(wǎng)絡(luò)技術(shù)應(yīng)用[J]. 實(shí)驗(yàn)科學(xué)與技術(shù) ,2006,4(4):3940,50[14] Sanden, Bo. SYSTEMS PROGRAMMING WITH JSP:EXAMPLE A VDU CONTROLLER[C]. Communications of the ACM,Vol28,No10,1985:10591067[15] 郝艷芳,廉永健. 制造業(yè)信息化[J].機(jī)電產(chǎn)品開(kāi)發(fā)與創(chuàng)新 ,2006,19(4):110112[16] 程凱. 計(jì)算機(jī)技術(shù)與應(yīng)用研究[J]. 許昌學(xué)院學(xué)報(bào),2006, 25(5):7780[17] Markus Aleksy,Axel Korthaus, Martin Schader. Use Java and the CORBA realization distribute type system [J]. Journal of Pingxiang College, ,2005:104105[18] 趙川,丁志剛,宗宇偉等. 基于Eclipse的測(cè)試工具管理平臺(tái)構(gòu)建[J]. 軟件世界, 2006年 14期:7879附錄1 外文參考文獻(xiàn)(譯文)JSP的技術(shù)發(fā)展歷史作者: Kathy Sierra and Bert Bates來(lái)源: Servletamp。在jsp頁(yè)面的菜單怎么處理上我猶豫了很久,最終確定使用iframe標(biāo)簽,而且還實(shí)現(xiàn)了自動(dòng)收縮到左邊框。我想到過(guò)很多方案,比如把題目和標(biāo)準(zhǔn)答案放到一個(gè)個(gè)文件中,但這樣就需要設(shè)計(jì)文件讀取的接口,很麻煩,還想到過(guò)把整張?jiān)嚲矸诺轿募?,那也很麻煩,最終確定用8張表(選擇題題庫(kù)表,填空題題庫(kù)表,試卷表,試卷—題庫(kù)表,試卷—填空題標(biāo),考試表,考試填空題表,考試選擇題表)來(lái)確定關(guān)系。網(wǎng)上考試系統(tǒng)的開(kāi)發(fā)過(guò)程中也遇到了很多問(wèn)題,開(kāi)始做需求時(shí)不確定考試系統(tǒng)到底應(yīng)該具備那些功能,只知道主要功能就是有試題能考試,但具體流程,怎樣實(shí)現(xiàn)這些功能就很模糊,所以查看了很多資料才理清楚。軟件開(kāi)發(fā)過(guò)程中不可避免的會(huì)犯一些錯(cuò)誤,軟件測(cè)試雖然不能杜絕系統(tǒng)錯(cuò)誤的產(chǎn)生,但可以大大地增加軟件的可靠性。以后的網(wǎng)上考試系統(tǒng)將會(huì)更加完善使用。尤其是在題庫(kù)的設(shè)計(jì),沒(méi)有設(shè)置試題的難易程度,學(xué)生考試就不能有層次性的進(jìn)行測(cè)試了。比如系統(tǒng)的有些功能操作不夠人性化,安全性驗(yàn)證做得還不夠。綜上所述,本系統(tǒng)已經(jīng)完成了任務(wù)書(shū)的全部功能。再用Admin2賬號(hào)和密碼進(jìn)入了教師主頁(yè),刪除了A