




已閱讀5頁,還剩51頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
北京科技大學天津學院本科生畢業(yè)設計(論文)本科生畢業(yè)設計(論文)-5-基于j2ee技術的網(wǎng)上考試系統(tǒng)的開發(fā)與設計摘要在網(wǎng)絡技術逐漸滲入社會生活各個層面的今天,傳統(tǒng)的考試方式也面臨著變革,而網(wǎng)絡考試則是一個很重要的方向?;诰W(wǎng)絡的考試系統(tǒng)是傳統(tǒng)考場的延伸,加上數(shù)據(jù)庫技術的利用,大大簡化了傳統(tǒng)考試的過程。因此網(wǎng)絡考試系統(tǒng)是電子化教學不可缺少的一個重要環(huán)節(jié)。所以現(xiàn)在較好的考試方法為網(wǎng)絡考試,考生通過姓名、準考證號碼或口令進行登錄,試卷可以根據(jù)題庫中的內容即時生成,可避免考試前的壓題;而且可以采用大量標準化試題,從而使用計算機判卷,大大提高閱卷效率;還可以直接把成績送到數(shù)據(jù)庫中,進行統(tǒng)計、排序等操作。因此,采用網(wǎng)絡考試方式將是以后考試發(fā)展的趨勢。網(wǎng)絡考試系統(tǒng)的實現(xiàn)技術有多種,我們開發(fā)制作的網(wǎng)絡考試系統(tǒng)是采用典型的瀏覽器/服務器型的b/s架構,系統(tǒng)按照功能的分類劃分為相對獨立但又相關的兩大部分,其開發(fā)主要包括考生考試應用程序的開發(fā)、服務器考試管理系統(tǒng)應用程序的開發(fā)。本考試系統(tǒng)以windows xp操作系統(tǒng)、mysql為數(shù)據(jù)庫平臺,開發(fā)工具為myeclipse 6.5。myeclipse 6.5是非常流行的基于java語言的可視化編程工具,mysql 是一個小型關系型數(shù)據(jù)庫管理系統(tǒng)。首先建立考試系統(tǒng)應用程序框架,然后,對初始原型系統(tǒng)進行需求迭代,不斷修正和改進,直到形成滿意的可行系統(tǒng)。在開發(fā)過程中遵循了軟件工程原理,經(jīng)歷了需求分析、概要設計、詳細設計、測試與配置幾個階段,直至后期的系統(tǒng)維護,從而保證了軟件的質量。論文內容共分六部分:第一部分是引言,簡要介紹了網(wǎng)絡考試系統(tǒng),開發(fā)工具的選擇;第二部分是網(wǎng)絡考試系統(tǒng)功能分析與應用程序框架的建立,確定了系統(tǒng)的確切需求同時建立考試管理系統(tǒng)應用程序框架;第三部分是考試管理系統(tǒng)概要設計,將服務器考試管理系統(tǒng)按照功能的分類劃分為相對獨立但又相關的五大功能模塊,并在此基礎上逐步細化;第四部分是考試管理系統(tǒng)詳細設計;第五部分是測試與調試;第六部分是致謝頁。the network examination system realized by j2ee techniqueabstractseep 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 that 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, the 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 papers 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, 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 independence 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 terrace, 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 beginning 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, keep 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, developping 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 examination 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 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)目標71.2可行性分析71.2.1現(xiàn)有的數(shù)據(jù)庫程序的分層結構71.2.1.1 傳統(tǒng)二層結構71.2.1.2 網(wǎng)絡分布式應用系統(tǒng)71.2.2xml語言81.3 本系統(tǒng)的選擇方案91.4 建模工具的選擇92 基于uml的系統(tǒng)分析102.1用例圖102.1.1 用戶關系圖102.1.2 系統(tǒng)用例圖102.2 順序圖112.2.1 老師活動順序圖112.2.2考生活動順序圖122.3 類圖133 數(shù)據(jù)庫的分析設計143.1 圖143.2 表設計143.2.1 用戶表設計143.2.2 課程表設計153.2.3 試題表設計153.2.4 試卷表設計163.2.5 成績表設計163.2.6 試卷試題表174 系統(tǒng)實現(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配置文件dwr.xml29結論31參 考 文 獻32附 錄34摘要44致謝55引 言 現(xiàn)在網(wǎng)絡正在改變著傳統(tǒng)的教育方式,網(wǎng)絡教育也越來越多,就算是傳統(tǒng)的教育方式下,把考試搬到網(wǎng)絡上也是一種趨勢??荚嚨臒o紙化網(wǎng)絡化不僅能有效減少老師的工作量,很好的利用計算機的優(yōu)勢,提高工作效率,也能使考試更加公平、公正。所以就一定要構建一個性能良好安全可靠的可以滿足大量學生同時使用的網(wǎng)絡考試系統(tǒng)。本原型系統(tǒng)主要功能如下:1. 學生可以在網(wǎng)上進行考試,考試結束后由計算機批改試題給出分數(shù),并記錄成績。2. 老師可以在網(wǎng)上對課程,試題,試卷進行相應的操作,并可查詢學生成績等功能。1需求分析1.1系統(tǒng)目標本網(wǎng)絡考試系統(tǒng)應該能滿足學校幾千學生在任何地方、任何時間都能參加考試。本系統(tǒng)要讓學生可以在網(wǎng)上進行考試,考試結束后由計算機批改試題給出分數(shù),并記錄成績。老師可以在網(wǎng)上對課程,試題,試卷進行相應的操作,并可查詢學生成績。另外為了讓考試比較公平,試卷的試題由計算機隨機從題庫抽取。1.2可行性分析1.2.1現(xiàn)有的數(shù)據(jù)庫程序的分層結構1.2.1.1 傳統(tǒng)二層結構傳統(tǒng)的二層式程序,也就是客戶/服務器(client/server)結構,這種程序相對簡單、清楚、開發(fā)容易,其結構如圖1??蛻魴C都通過網(wǎng)絡連接到同一個數(shù)據(jù)庫上,不過這樣結構問題很多,最主要的就是性能較差維護困難已經(jīng)不適應在因特網(wǎng)(internet)上使用。數(shù)據(jù)同一性和完整性難以控制。同時由于每一個客戶機都必須安裝特定的軟件,且這種客戶端軟件體積還比較大,用戶使用起來非常不方便,所以目前已經(jīng)面臨淘汰。不過這樣的系統(tǒng)開發(fā)比較簡單,對開發(fā)人員的技術要求也不高,在內部局域網(wǎng)上使用還有一定的市場。1.2.1.2 網(wǎng)絡分布式應用系統(tǒng)近幾年來因特網(wǎng)飛速發(fā)展,人們的生活因為網(wǎng)絡而在慢慢的改變。現(xiàn)在的個人電腦(pc)上都安裝了瀏覽器(browser)因此人們就利用瀏覽器來作為客戶端程序,萬維網(wǎng)服務器(web server)作為中間層和客戶端溝通服務器,這就是現(xiàn)在流行的b/s(browser/server)結構方式。在這種結構下,本地的計算機無須安裝任何客戶端程序,只要有瀏覽器,可以使用因特網(wǎng)就可以使用系統(tǒng)了。他不僅僅減少了開發(fā)客戶端帶來的成本,最關鍵的是,大大減少了系統(tǒng)維護的成本和時間,當修改系統(tǒng)的時候不需要對客戶做任何的改動。并且客戶也可以在任何計算機上使用你的系統(tǒng)而不要做特別的設置。1.2.2 xml語言xml(extended markup language)是一種標記語言,就象我們熟悉的html一樣,但是xml的標簽是由人們根據(jù)自己的需要來定制的,也就是說,任何詞和字都可以做為標簽來用,只要能準確的表達數(shù)據(jù)的屬性。例如當我們要表達一個人的姓名的時候用html也許我們會這樣做:“張三”,但如果用xml我們就可以這樣做:“張三”。數(shù)據(jù)表達的準確性xml絕對比html好多了!準確表達數(shù)據(jù)的含義這就是xml帶來的最大好處。有了xml,我們就能定制各行各業(yè)的xml標簽,這樣對于要傳輸?shù)臄?shù)據(jù)就能用文本方式傳送,并且只要對方有一份標簽的定義文件就可以理解我們所表達的意思,從而在任何程序之間,不管他是用什么語言編寫的;任何系統(tǒng)之間,不管他是運行在什么cpu上的,是windows、linux還是mac os;任何人之間,無論他是什么國籍,說什么語言,是否懂得你的語言,自由交換信息了。而這些正適應了目前因特網(wǎng)的發(fā)展,適應了人們溝通交流的需要。xml出現(xiàn)短短幾年就得到了廣泛的應用,目前新推出的軟件幾乎都會支持xml。例如微軟的dot net系列軟件、office系列軟件等等。不出幾年,xml就會代替html成為因特網(wǎng)上標準的標記語言。本系統(tǒng)所有配置文件全部使用xml語言,便于系統(tǒng)解析,減小開發(fā)系統(tǒng)的復雜度,減少系統(tǒng)處理時間,減少網(wǎng)絡傳送量,從而提高效率。1.3 本系統(tǒng)的選擇方案本系統(tǒng)應用于因特網(wǎng),并且要滿足一個學校幾千學生考試的需要,因此本系統(tǒng)決定采用b/s結構,并且數(shù)據(jù)庫使用mysql,開發(fā)框架為ssh(struts2+sping2.5+hibernate3.2),編碼目錄層次采用:com.itceping.action(與struts有關的);業(yè)務處理層:com.itceping.service;數(shù)據(jù)操作層:com.itceping.dao;實體類:com.itceping.po(跟hibernate有關的);工具類:com.itceping.util。1.4 建模工具的選擇以uml語言建模應該是以rational公司的rose工具為最好。不過rose太貴了,并且rose比較龐大,使用不是太方便。sybase公司出品的powerdesigner建模工具也支持uml,還提供一個45天的試用版,在數(shù)據(jù)庫建模上也有他獨到的地方。因此建模工具就選用powerdesigner。2 基于uml的系統(tǒng)分析 2.1用例圖2.1.1 用戶關系圖2.1.2 系統(tǒng)用例圖2.2 順序圖2.2.1 老師活動順序圖2.2.2考生活動順序圖2.3 類圖3 數(shù)據(jù)庫的分析設計3.1 圖3.2 表設計3.2.1 用戶表設計名稱類型長度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 key usename using btree (username) )3.2.2 課程表設計名稱類型長度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 試題表設計名稱類型長度pk?idint10是contentmediumtexttypevarchar32course_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, primary key (id), key fk_question (course_id), constraint question_ibfk_1 foreign key (course_id) references course (id) )3.2.4 試卷表設計名稱類型長度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 成績表設計名稱類型長度pk?idint4是user_namevarchar10paper_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_idint11question_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)實現(xiàn)4.1 開發(fā)平臺的選擇 本系統(tǒng)由于是采用的微軟公司所推出的分布式web應用構架,所以開發(fā)平臺使用了windowsxp,數(shù)據(jù)庫選用mysql,web服務器程序使用tomcat6.
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 新能源汽車充電站安全運營管理與應急預案合同
- 激光打標機租賃合同(含設備調試與安裝服務)
- 民宿短租平臺民宿房東入住協(xié)議
- 跨界合作虛擬現(xiàn)實體育賽事直播推廣合同
- 模具版權歸屬變更及補充協(xié)議
- 高端商務會議安全保衛(wèi)協(xié)議
- 虛擬貨幣交易平臺實名認證協(xié)議
- 社會企業(yè)社區(qū)養(yǎng)老投資協(xié)議
- 路沿石拆除協(xié)議書
- 高考后父母協(xié)議書
- 銀行訴訟案件管理辦法
- 追索子女撫養(yǎng)費起訴狀
- 六年級數(shù)學質量分析PPT
- 土地平整、池塘推土、雜草灌木叢及樹木清除施工方案
- 眼鏡鏡架的整形專業(yè)培訓2課件
- 下線儀式串詞策劃
- 通用長期供銷合同范本
- 新版《藥品管理法》解讀課件
- 《社區(qū)治理研究國內外文獻綜述(1900字)》
- 2023浙江省學生藝術特長測試A級理論復習資料
- 建筑業(yè)企業(yè)資質職稱人員相近專業(yè)認定目錄
評論
0/150
提交評論