【正文】
圖 42 注冊(cè)成功頁面 Java Web 應(yīng)用開發(fā) —— 在線模擬考試系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 18 完成注冊(cè)模塊的主要代碼如下所示: 首先 獲取 上個(gè)頁面?zhèn)鬟^來的 數(shù)據(jù),用戶名、密碼、真實(shí)姓名 String username = (username)。 當(dāng)用戶登錄的時(shí)候,輸入的帳號(hào)或者密碼有其中一項(xiàng)為空時(shí),會(huì)有提示框提示,提示您帳號(hào)或者密碼不能為 空。 數(shù)據(jù)庫連接 的實(shí)現(xiàn)方法 從系統(tǒng)功能模塊劃分中可以看出,各模塊雖然是獨(dú)立的,但又統(tǒng)一于同一數(shù)據(jù)庫中,便于管理員管理維護(hù)數(shù)據(jù)庫, 同時(shí)也便于教師和學(xué)生的操作 。 學(xué)生開始考試的時(shí)候,首先需要選擇試卷類型,或者也可以叫做試題分類。 綜合以上分析,要實(shí)現(xiàn)上面的所有功能模塊, 數(shù)據(jù)庫共要設(shè)計(jì)六個(gè)表,它們分別是:試卷類別表、用戶表、用戶成績(jī)表、教師表、管理員表、題庫表。試題庫的更新由管理員類用戶完成。 經(jīng)濟(jì)可行性 在線考試必然會(huì)在今后的教學(xué)管理上成為主要的考試形式。 自從 JSP發(fā)布之后,推出了各式各樣的 JSP引擎。為確保只有獲授權(quán)用戶才能進(jìn)入該數(shù)據(jù)庫服務(wù)器,所有的密 碼傳輸均采用加密形式,同時(shí)也提供了 SSH 和 SSI。 ( 4)多樣化和功能強(qiáng)大的開發(fā)工具支持。 JSP 技術(shù)使用 Java 編程語言編寫類 XML 的 tags 和 scriptlets,來封裝產(chǎn)生動(dòng)態(tài)網(wǎng)頁的處理邏輯。 論文首先對(duì)在線考試系統(tǒng)做了需求分析, 然后 給出 系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 過程 , 最 后,針對(duì)系統(tǒng)的各個(gè)功能進(jìn)行了測(cè)試。 畢 業(yè)論 文 題 目: Java Web 應(yīng)用開發(fā) —— 在 線模擬考試系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 學(xué) 院: 計(jì)算機(jī) 與信息工程 學(xué)院 專 業(yè): 軟件工程 畢業(yè)設(shè)計(jì)(論文)原創(chuàng)性聲明和使用授權(quán)說明 原創(chuàng)性聲明 本人鄭重承諾:所呈交的畢業(yè)設(shè)計(jì)(論文),是我個(gè)人在指導(dǎo)教師的指導(dǎo)下進(jìn)行的研究工作及取得的成果。 關(guān)鍵詞 : 在線 考試 ;瀏覽器 /服務(wù)器 ; JSP; MySQL; JDBC; Abstract III Abstract With the development of working technology, online examination and distance education is an aspect in the application of inter. In recent years the online examination especial of Webbased examination is more and more popular. The graduation project’s subject is to design and realization of the online examination system. The system uses the browser/server to develop. It includes login, new user registration, online examination, examination paper set, examination paper management, score statistics ,query results and other functional. The system takes the Windows 7 as the OS, Tomcat as the web Server, uses JSP technology and MySQL as the Database Server development tools to realize the system. In this paper, the requirement analysis about the online examination system is introduced, and then give the system design and implementation .Finally, all of the functions of the system is tested. Keywords: Online Examination; Browse/Server; JSP; MySQL; JDBC; 目錄 IV 目錄 摘 要 (中文) .................................................................................................................... II (英文) ................................................................................................................... III 第一章 系統(tǒng)概述 .................................................................................................................... 1 系統(tǒng)開發(fā)背景 ...................................................................................................................... 1 系統(tǒng)開發(fā)意義 ...................................................................................................................... 1 系統(tǒng)開發(fā)工具 ....................................................................................................................... 1 第二章 系統(tǒng)分析 .................................................................................................................... 5 現(xiàn)狀 分析 ............................................................................................................................. 5 可行性分析 ......................................................................................................................... 5 設(shè)計(jì)目標(biāo) ............................................................................................................................. 6 功能要求 ............................................................................................................................. 6 系統(tǒng)開發(fā)環(huán)境配置 ............................................................................................................... 7 第三章 系統(tǒng)設(shè)計(jì) .................................................................................................................... 9 數(shù)據(jù)庫設(shè)計(jì) .......................................................................................................................... 9 系統(tǒng)結(jié)構(gòu)設(shè)計(jì) ..................................................................................................................... 11 用戶界面設(shè)計(jì) ..................................................................................................................... 12 第四章 系統(tǒng)實(shí)現(xiàn) .................................................................................................................. 15 數(shù)據(jù)庫連接的實(shí)現(xiàn)方法 ...................................................................................................... 15 登陸注冊(cè)模塊 .................................................................................................................... 16 考生模塊 ............................................................................................................................ 18 教師模塊 ........................................................................................................................... 23 管理員模塊 ....................................................................................................................... 31 第五章 系統(tǒng)測(cè)試 .................................................................................................................. 33 什么是軟件測(cè)試 ................................................................................................................. 33 軟件測(cè)試的目標(biāo)與方法 ....................................................................................................... 33 測(cè)試內(nèi)容 ............................................................................................................................ 33 系統(tǒng)的不足和展望 .............................................................................................................. 34 結(jié)束語 .................................................................................................................................... 35 參考文獻(xiàn) ................................................