版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文)本科生畢業(yè)設(shè)計(jì)(論文)-5-基于j2ee技術(shù)的網(wǎng)上考試系統(tǒng)的開發(fā)與設(shè)計(jì)摘要在網(wǎng)絡(luò)技術(shù)逐漸滲入社會生活各個(gè)層面的今天,傳統(tǒng)的考試方式也面臨著變革,而網(wǎng)絡(luò)考試則是一個(gè)很重要的方向?;诰W(wǎng)絡(luò)的考試系統(tǒng)是傳統(tǒng)考場的延伸,加上數(shù)據(jù)庫技術(shù)的利用,大大簡化了傳統(tǒng)考試的過程。因此網(wǎng)絡(luò)考試系統(tǒng)是電子化教學(xué)不可缺少的一個(gè)重要環(huán)節(jié)。所以現(xiàn)在較好的考試方法為網(wǎng)絡(luò)考試,考生通過姓名、準(zhǔn)考證號碼或口令進(jìn)行登錄,試卷可以根據(jù)題庫中的內(nèi)容即時(shí)生成,可避免考試前的壓題;而且可以采用大量標(biāo)準(zhǔn)化試題,從而使用計(jì)算機(jī)判卷,大大提高閱卷效率;還可以直接把成績送到數(shù)據(jù)庫中,進(jìn)行統(tǒng)計(jì)、排序等操作。
2、因此,采用網(wǎng)絡(luò)考試方式將是以后考試發(fā)展的趨勢。網(wǎng)絡(luò)考試系統(tǒng)的實(shí)現(xiàn)技術(shù)有多種,我們開發(fā)制作的網(wǎng)絡(luò)考試系統(tǒng)是采用典型的瀏覽器/服務(wù)器型的b/s架構(gòu),系統(tǒng)按照功能的分類劃分為相對獨(dú)立但又相關(guān)的兩大部分,其開發(fā)主要包括考生考試應(yīng)用程序的開發(fā)、服務(wù)器考試管理系統(tǒng)應(yīng)用程序的開發(fā)。本考試系統(tǒng)以windows xp操作系統(tǒng)、mysql為數(shù)據(jù)庫平臺,開發(fā)工具為myeclipse 6.5。myeclipse 6.5是非常流行的基于java語言的可視化編程工具,mysql 是一個(gè)小型關(guān)系型數(shù)據(jù)庫管理系統(tǒng)。首先建立考試系統(tǒng)應(yīng)用程序框架,然后,對初始原型系統(tǒng)進(jìn)行需求迭代,不斷修正和改進(jìn),直到形成滿意的可行系統(tǒng)。在開發(fā)過
3、程中遵循了軟件工程原理,經(jīng)歷了需求分析、概要設(shè)計(jì)、詳細(xì)設(shè)計(jì)、測試與配置幾個(gè)階段,直至后期的系統(tǒng)維護(hù),從而保證了軟件的質(zhì)量。論文內(nèi)容共分六部分:第一部分是引言,簡要介紹了網(wǎng)絡(luò)考試系統(tǒng),開發(fā)工具的選擇;第二部分是網(wǎng)絡(luò)考試系統(tǒng)功能分析與應(yīng)用程序框架的建立,確定了系統(tǒng)的確切需求同時(shí)建立考試管理系統(tǒng)應(yīng)用程序框架;第三部分是考試管理系統(tǒng)概要設(shè)計(jì),將服務(wù)器考試管理系統(tǒng)按照功能的分類劃分為相對獨(dú)立但又相關(guān)的五大功能模塊,并在此基礎(chǔ)上逐步細(xì)化;第四部分是考試管理系統(tǒng)詳細(xì)設(shè)計(jì);第五部分是測試與調(diào)試;第六部分是致謝頁。the network examination system realized by j2ee t
4、echniqueabstractseep into today that society life of each level gradually in the network technique, the traditional examination method also faces to replace, and network examination is a very important direction. according to the examination system of the network is process that the exploitation tha
5、t the tradition tests a field extensions. with the technique of database, simplifying the tradition examination consumedly. for this reason network examination system is an important link of the electronical teaching indispensability. so the good examination in now method examines for the network, t
6、he examinee passes the name and allow to research number or passwords proceed the logging, for a contents according to a real time born, can avoiding the examination press; and can adopt large quantity standardize to try, from but the usage calculator judges book, increases to grade examination pape
7、rs the efficiency consumedly; can also send to the score directly in the database, proceed the covariance, row preface etc. operation. therefore, adoption network examination the way will examine the trend of the development later on.the network examination system realizes technique contain variety,
8、 we develops the network examination system of the creation is development and examination backup system that the classification that the type of b/s to adopts typical browser/ server type configurings, the system divides the line according to the function to apply the procedure for opposite indepen
9、dence but again related two greatest molds a development, server for, its development primarily including users examination applying procedure examination control systems apply the development of the procedure. this examination system regard the operate system of windowsxp,mysql as the database terr
10、ace, the development tool is myeclipse 6.5. myeclipse 6.5 is very popular of according to the java is phonetic to see to turn to weave the distance tool, the mysql is a tables top relation database management system.first establish the examine system application procedure frame, then, start to the b
11、eginning the prototype system proceeds to require on behalf, revising continuously with improve, until formation satisfied can a system. followed the software engineering principle in develop process, experience the need analysis, essentials design, detailed design, test with install a few stages, k
12、eep to the in the late system to support, from but guaranteed the quantity of the software.the thesis contents is divided into totally six part: the first part is choice that preface that server examination management system, the synopsis introduced the network the examination the system, developpin
13、g the tool; the second part is a network examination system function analysis and apply the procedure frame establish, making sure the system to really slice the need to establish at the same time examination control system application procedure frame; the third part is classification that examinati
14、on management the system essentials designs, examining the server to control the system to divide the line according to the function for opposite independent but again related five greatest functions mold piece, and here foundation top gradually thin turn; the four-part cent is a detailed design in
15、system in management in examination; the fifth the part is a test with install; the sixth part is the page with gratitude.目錄摘要1abstract2引 言61需求分析71.1系統(tǒng)目標(biāo)71.2可行性分析71.2.1現(xiàn)有的數(shù)據(jù)庫程序的分層結(jié)構(gòu)71.2.1.1 傳統(tǒng)二層結(jié)構(gòu)71.2.1.2 網(wǎng)絡(luò)分布式應(yīng)用系統(tǒng)71.2.2xml語言81.3 本系統(tǒng)的選擇方案91.4 建模工具的選擇92 基于uml的系統(tǒng)分析102.1用例圖102.1.1 用戶關(guān)系圖102.1.2 系統(tǒng)用例圖102
16、.2 順序圖112.2.1 老師活動順序圖112.2.2考生活動順序圖122.3 類圖133 數(shù)據(jù)庫的分析設(shè)計(jì)143.1 圖143.2 表設(shè)計(jì)143.2.1 用戶表設(shè)計(jì)143.2.2 課程表設(shè)計(jì)153.2.3 試題表設(shè)計(jì)153.2.4 試卷表設(shè)計(jì)163.2.5 成績表設(shè)計(jì)163.2.6 試卷試題表174 系統(tǒng)實(shí)現(xiàn)184.1 開發(fā)平臺的選擇184.2 編輯工具的選擇184.3 系統(tǒng)編碼184.3.1 核心配置文件web.xml184.3.2 spring配置文件applicationcontent.xml204.3.3 struts2.0配置文件struts.xml254.3.4 dwr配置文件
17、dwr.xml29結(jié)論31參 考 文 獻(xiàn)32附 錄34摘要44致謝55引 言 現(xiàn)在網(wǎng)絡(luò)正在改變著傳統(tǒng)的教育方式,網(wǎng)絡(luò)教育也越來越多,就算是傳統(tǒng)的教育方式下,把考試搬到網(wǎng)絡(luò)上也是一種趨勢??荚嚨臒o紙化網(wǎng)絡(luò)化不僅能有效減少老師的工作量,很好的利用計(jì)算機(jī)的優(yōu)勢,提高工作效率,也能使考試更加公平、公正。所以就一定要構(gòu)建一個(gè)性能良好安全可靠的可以滿足大量學(xué)生同時(shí)使用的網(wǎng)絡(luò)考試系統(tǒng)。本原型系統(tǒng)主要功能如下:1. 學(xué)生可以在網(wǎng)上進(jìn)行考試,考試結(jié)束后由計(jì)算機(jī)批改試題給出分?jǐn)?shù),并記錄成績。2. 老師可以在網(wǎng)上對課程,試題,試卷進(jìn)行相應(yīng)的操作,并可查詢學(xué)生成績等功能。1需求分析1.1系統(tǒng)目標(biāo)本網(wǎng)絡(luò)考試系統(tǒng)應(yīng)該能滿
18、足學(xué)校幾千學(xué)生在任何地方、任何時(shí)間都能參加考試。本系統(tǒng)要讓學(xué)生可以在網(wǎng)上進(jìn)行考試,考試結(jié)束后由計(jì)算機(jī)批改試題給出分?jǐn)?shù),并記錄成績。老師可以在網(wǎng)上對課程,試題,試卷進(jìn)行相應(yīng)的操作,并可查詢學(xué)生成績。另外為了讓考試比較公平,試卷的試題由計(jì)算機(jī)隨機(jī)從題庫抽取。1.2可行性分析1.2.1現(xiàn)有的數(shù)據(jù)庫程序的分層結(jié)構(gòu)1.2.1.1 傳統(tǒng)二層結(jié)構(gòu)傳統(tǒng)的二層式程序,也就是客戶/服務(wù)器(client/server)結(jié)構(gòu),這種程序相對簡單、清楚、開發(fā)容易,其結(jié)構(gòu)如圖1。客戶機(jī)都通過網(wǎng)絡(luò)連接到同一個(gè)數(shù)據(jù)庫上,不過這樣結(jié)構(gòu)問題很多,最主要的就是性能較差維護(hù)困難已經(jīng)不適應(yīng)在因特網(wǎng)(internet)上使用。數(shù)據(jù)同一性和
19、完整性難以控制。同時(shí)由于每一個(gè)客戶機(jī)都必須安裝特定的軟件,且這種客戶端軟件體積還比較大,用戶使用起來非常不方便,所以目前已經(jīng)面臨淘汰。不過這樣的系統(tǒng)開發(fā)比較簡單,對開發(fā)人員的技術(shù)要求也不高,在內(nèi)部局域網(wǎng)上使用還有一定的市場。1.2.1.2 網(wǎng)絡(luò)分布式應(yīng)用系統(tǒng)近幾年來因特網(wǎng)飛速發(fā)展,人們的生活因?yàn)榫W(wǎng)絡(luò)而在慢慢的改變。現(xiàn)在的個(gè)人電腦(pc)上都安裝了瀏覽器(browser)因此人們就利用瀏覽器來作為客戶端程序,萬維網(wǎng)服務(wù)器(web server)作為中間層和客戶端溝通服務(wù)器,這就是現(xiàn)在流行的b/s(browser/server)結(jié)構(gòu)方式。在這種結(jié)構(gòu)下,本地的計(jì)算機(jī)無須安裝任何客戶端程序,只要有瀏覽
20、器,可以使用因特網(wǎng)就可以使用系統(tǒng)了。他不僅僅減少了開發(fā)客戶端帶來的成本,最關(guān)鍵的是,大大減少了系統(tǒng)維護(hù)的成本和時(shí)間,當(dāng)修改系統(tǒng)的時(shí)候不需要對客戶做任何的改動。并且客戶也可以在任何計(jì)算機(jī)上使用你的系統(tǒng)而不要做特別的設(shè)置。1.2.2 xml語言xml(extended markup language)是一種標(biāo)記語言,就象我們熟悉的html一樣,但是xml的標(biāo)簽是由人們根據(jù)自己的需要來定制的,也就是說,任何詞和字都可以做為標(biāo)簽來用,只要能準(zhǔn)確的表達(dá)數(shù)據(jù)的屬性。例如當(dāng)我們要表達(dá)一個(gè)人的姓名的時(shí)候用html也許我們會這樣做:“張三”,但如果用xml我們就可以這樣做:“張三”。數(shù)據(jù)表達(dá)的準(zhǔn)確性xml絕對比
21、html好多了!準(zhǔn)確表達(dá)數(shù)據(jù)的含義這就是xml帶來的最大好處。有了xml,我們就能定制各行各業(yè)的xml標(biāo)簽,這樣對于要傳輸?shù)臄?shù)據(jù)就能用文本方式傳送,并且只要對方有一份標(biāo)簽的定義文件就可以理解我們所表達(dá)的意思,從而在任何程序之間,不管他是用什么語言編寫的;任何系統(tǒng)之間,不管他是運(yùn)行在什么cpu上的,是windows、linux還是mac os;任何人之間,無論他是什么國籍,說什么語言,是否懂得你的語言,自由交換信息了。而這些正適應(yīng)了目前因特網(wǎng)的發(fā)展,適應(yīng)了人們溝通交流的需要。xml出現(xiàn)短短幾年就得到了廣泛的應(yīng)用,目前新推出的軟件幾乎都會支持xml。例如微軟的dot net系列軟件、office系
22、列軟件等等。不出幾年,xml就會代替html成為因特網(wǎng)上標(biāo)準(zhǔn)的標(biāo)記語言。本系統(tǒng)所有配置文件全部使用xml語言,便于系統(tǒng)解析,減小開發(fā)系統(tǒng)的復(fù)雜度,減少系統(tǒng)處理時(shí)間,減少網(wǎng)絡(luò)傳送量,從而提高效率。1.3 本系統(tǒng)的選擇方案本系統(tǒng)應(yīng)用于因特網(wǎng),并且要滿足一個(gè)學(xué)校幾千學(xué)生考試的需要,因此本系統(tǒng)決定采用b/s結(jié)構(gòu),并且數(shù)據(jù)庫使用mysql,開發(fā)框架為ssh(struts2+sping2.5+hibernate3.2),編碼目錄層次采用:com.itceping.action(與struts有關(guān)的);業(yè)務(wù)處理層:com.itceping.service;數(shù)據(jù)操作層:com.itceping.dao;實(shí)體類
23、:com.itceping.po(跟hibernate有關(guān)的);工具類:com.itceping.util。1.4 建模工具的選擇以uml語言建模應(yīng)該是以rational公司的rose工具為最好。不過rose太貴了,并且rose比較龐大,使用不是太方便。sybase公司出品的powerdesigner建模工具也支持uml,還提供一個(gè)45天的試用版,在數(shù)據(jù)庫建模上也有他獨(dú)到的地方。因此建模工具就選用powerdesigner。2 基于uml的系統(tǒng)分析 2.1用例圖2.1.1 用戶關(guān)系圖2.1.2 系統(tǒng)用例圖2.2 順序圖2.2.1 老師活動順序圖2.2.2考生活動順序圖2.3 類圖3 數(shù)據(jù)庫的分
24、析設(shè)計(jì)3.1 圖3.2 表設(shè)計(jì)3.2.1 用戶表設(shè)計(jì)名稱類型長度pk?useridint10是usernamevarchar45passwordvarchar45idadmintinyint1sql語句:create table user ( userid int(10) unsigned not null auto_increment, username varchar(45) not null, password varchar(45) not null, isadmin tinyint(1) not null default 0, primary key (userid), unique
25、 key usename using btree (username) )3.2.2 課程表設(shè)計(jì)名稱類型長度pk?idint10是namevarchar100codevarchar100destextsql語句:create table course ( id int(10) not null auto_increment, name varchar(100) not null, code varchar(100) default null, des text, primary key (id) )3.2.3 試題表設(shè)計(jì)名稱類型長度pk?idint10是contentmediumtexttyp
26、evarchar32course_idint10scoreint2ansvarchar10optivarchar1024sql語句:create table question ( id int(10) not null auto_increment, content mediumtext, type varchar(32) default null, course_id int(10) default null, score int(2) default null, ans varchar(10) default null, opti varchar(1024) default null, p
27、rimary key (id), key fk_question (course_id), constraint question_ibfk_1 foreign key (course_id) references course (id) )3.2.4 試卷表設(shè)計(jì)名稱類型長度pk?idint11是fchar2sql語句:create table paper ( id int(11) not null auto_increment, f char(2) not null default 0, primary key (id) )3.2.5 成績表設(shè)計(jì)名稱類型長度pk?idint4是user_na
28、mevarchar10paper_idint4scoreint4date_timevarchar50sql語句:create table grade ( id int(4) not null auto_increment, user_name varchar(10) default null, paper_id int(4) default null, score int(4) default null, date_time varchar(50) default null, primary key (id) )3.2.6 試卷試題表名稱類型長度pk?idint11是paper_idint11
29、question_idint11sql語句:create table paper_question ( id int(11) not null auto_increment, paper_id int(11) not null, question_id int(11) not null, primary key (id), key fk_paper_question (paper_id), key fk_paper_question1 (question_id), constraint paper_question_ibfk_1 foreign key (paper_id) references paper (id), constraint paper_question_ibfk_2 foreign key (question_id) references question (id) )4 系統(tǒng)實(shí)現(xiàn)4.1 開發(fā)平臺的選擇 本系統(tǒng)由于是采用的微軟公司所推出的分布式web應(yīng)用構(gòu)架,所以開發(fā)平臺使用了windowsxp,數(shù)據(jù)庫選用mysql,web服務(wù)器程序使用tomcat6.0。由于使用了xml,所以客戶端必須是ie5.0以上版本的瀏覽器才能正常使用本系統(tǒng)。4.2 編輯工具的選擇 本系統(tǒng)以java語言為基礎(chǔ),采用ssh為框架,jsp,servlet
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 特殊人群的科學(xué)運(yùn)動與健康管理
- 幼兒園的德育教育工作方案5
- 環(huán)氧涂料行業(yè)的投資價(jià)值及風(fēng)險(xiǎn)研究
- 手動葫蘆吊裝施工方案1
- 現(xiàn)代企業(yè)管理中的危機(jī)管理與領(lǐng)導(dǎo)力
- Module 1 Unit 1 Did you come back yesterday?(說課稿)-2024-2025學(xué)年外研版(三起)英語五年級上冊
- 1 古詩詞三首(說課稿)-2023-2024學(xué)年統(tǒng)編版語文四年級下冊001
- 2024年四年級英語上冊 Unit 2 My schoolbag The first period說課稿 人教PEP
- Unit 1 Science and Scientists Listening and Speaking說課稿+ 學(xué)案 高中英語同步備課系列人教版2019選擇性必修第二冊
- 金鎖記優(yōu)秀課件
- 人教版高中英語必修一單詞表(默寫版)
- 格式塔心理學(xué)與文藝心理學(xué)
- 海德堡HRT共焦激光角膜顯微鏡
- (汽車制造論文)機(jī)器人在汽車制造中應(yīng)用
- 幼兒園手工教學(xué)中教師指導(dǎo)行為研究-以自貢市幼兒園為例
- 初中物理實(shí)驗(yàn)教學(xué)
- 《智能投顧 大數(shù)據(jù)智能驅(qū)動投顧創(chuàng)新》讀書筆記思維導(dǎo)圖
- 英語詞匯量測試附答案
- 企業(yè)應(yīng)急管理及能力提升培訓(xùn)課件精選
- 吲哚菁綠血管造影檢查知情同意書
評論
0/150
提交評論