【正文】
frame。 The work examination system realized by J2EE technique Abstract Seep into today that society life of each level gradually in the work technique, the traditional examination method also faces to replace, and work examination is a very important direction. According to the examination system of the work 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 work examination system is an important link of the electronical teaching indispensability. So the good examination in now method examines for the work, 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。 MyEclipse 是非常流行的基于 java 語(yǔ)言的可視 化編程工具, MySQL 是一個(gè)小型關(guān)系型數(shù)據(jù)庫(kù)管理系統(tǒng) 。所以現(xiàn)在較好的考試方法為網(wǎng)絡(luò)考試,考生通過(guò)姓名、準(zhǔn)考證號(hào)碼或口令進(jìn)行登錄,試卷可以根據(jù)題庫(kù)中的內(nèi)容即時(shí)生成,可避免考試前的壓題;而且可以采用大量標(biāo)準(zhǔn)化試題,從而使用計(jì)算機(jī) 判卷,大大提高閱卷效率;還可以直接把成績(jī)送到數(shù)據(jù)庫(kù)中,進(jìn)行統(tǒng)計(jì)、排序等操作。 本科生畢業(yè)設(shè)計(jì) (論文 ) 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 1 基于 J2EE技術(shù)的網(wǎng)上考試系統(tǒng)的開(kāi)發(fā)與設(shè)計(jì) 摘 要 在網(wǎng)絡(luò)技術(shù)逐漸滲入社會(huì)生活各個(gè)層面的今天,傳統(tǒng)的考試方式也面臨著變革,而網(wǎng)絡(luò)考試則是一個(gè)很重要的方向。因此,采用網(wǎng)絡(luò)考試方式將是以后考試發(fā)展的趨勢(shì)。 首先建立考試系統(tǒng)應(yīng)用程序框架 ,然后 ,對(duì)初始原型系統(tǒng)進(jìn)行需求迭代 ,不斷修正和改進(jìn) ,直到形成滿意的可行系統(tǒng)。 And can adopt large quantity standardize to try, from but the usage calculator judges book, increases to grade examination papers the efficiency consumedly。 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??荚嚨臒o(wú)紙化網(wǎng)絡(luò)化不僅能有效減少老師的工作量,很好的利用計(jì)算機(jī)的優(yōu)勢(shì),提高工作效率,也能使考試更加公平、公正。 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 7 1需求分析 系統(tǒng)目標(biāo) 本網(wǎng)絡(luò)考試系統(tǒng)應(yīng)該能滿足學(xué)校 幾千學(xué)生在任何地方、任何時(shí)間都能參加考試。 可行性分析 現(xiàn)有的數(shù)據(jù)庫(kù)程序的分層結(jié)構(gòu) 傳統(tǒng)二層結(jié)構(gòu) 傳統(tǒng)的二層式程序,也就是客戶 /服務(wù)器( Client/Server)結(jié)構(gòu),這種程序相對(duì)簡(jiǎn)單、清楚、開(kāi)發(fā)容易,其結(jié)構(gòu)如圖 1。不過(guò)這樣的系統(tǒng)開(kāi)發(fā)比較簡(jiǎn)單,對(duì)開(kāi)發(fā)人員的技術(shù)要求也不高,在內(nèi)部局域網(wǎng)上使用還有一定的市場(chǎng) 。他不僅僅減少了開(kāi)發(fā)客戶端帶來(lái)的成本,最關(guān)鍵的是,大大減少了系統(tǒng)維護(hù)的成本和時(shí)間,當(dāng)修改系統(tǒng)的時(shí)候不需要對(duì)客戶做任何的改動(dòng)。數(shù)據(jù)表達(dá)的準(zhǔn)確性 XML 絕對(duì)比 HTML 好多了!準(zhǔn)確表達(dá)數(shù)據(jù)的含義這就是 XML 帶來(lái)的最大好處。例如微軟的 Dot Net 系列軟件、 Office 系列軟件等等。 建模工具的選擇 以 UML 語(yǔ)言建模應(yīng)該是以 Rational 公司的 Rose 工具為最好。 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 10 2 基于 UML的系統(tǒng)分析 用例圖 用戶關(guān)系圖 系統(tǒng)用例圖 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 11 順序圖 老師活動(dòng)順序圖 登錄生成試卷維護(hù)確認(rèn)密碼 試卷老師學(xué)生 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 12 考生活動(dòng)順序圖 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 13 類圖 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 14 3 數(shù)據(jù)庫(kù)的分析設(shè)計(jì) 圖 表 設(shè)計(jì) 用戶表設(shè)計(jì) 名稱 類型 長(zhǎng)度 PK? userId int 10 是 username varchar 45 password varchar 45 idAdmin tinyint 1 SQL 語(yǔ)句 : 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 39。, PRIMARY KEY (`id`) ) 成績(jī)表設(shè)計(jì) 名稱 類型 長(zhǎng)度 PK? id int 4 是 user_name varchar 10 paper_id int 4 score int 4 date_time varchar 50 SQL 語(yǔ)句: 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 17 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`) ) 試卷試題表 名稱 類型 長(zhǎng)度 PK? id int 11 是 paper_id int 11 question_id int 11 SQL 語(yǔ)句: 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`) ) 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 18 4 系統(tǒng)實(shí)現(xiàn) 開(kāi)發(fā)平臺(tái)的選擇 本系統(tǒng)由于是采用的微軟公司所推出的分布式 Web 應(yīng)用構(gòu)架,所以開(kāi)發(fā)平臺(tái)使用了 WindowsXP,數(shù)據(jù)庫(kù)選用 MySQL, Web 服務(wù)器程序使用 。 核心配置文件 ?xml version= encoding=UTF8? webapp version= xmlns= xmlns:xsi= xsi:schemaLocation= listener! 用于啟動(dòng)在 web下的 spring listenerclass /listenerclass /listener !更改 北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文) 19 指定支持 struts2 filter filternamestruts2/filtername filterclass /filterclass /filter filtermapping filternamestruts2/filtername urlpattern*.action/urlpattern /filtermapping ! 支持 DWR servlet servletnamedwrinvoker/servletname servletclass/servletclass initparam paramnamedebug/paramname paramvaluetrue/paramvalue /initparam /servlet servletmapping servletnamedwrinvoker/servletname urlpattern/dwr/*/urlpattern /servletmapping welefilelist