I摘要随着信息时代的到来和现代科学技术的突飞猛进,尤其是计算机技术的快速发展,在线考试系统已经越来越普及了。本文主要介绍一个基于J2EE的网络在线考试系统的体系结构和具体设计与如何实现。该系统采用Struts中的MVC的三层体系结构模式进行设计,使用JSP+JavaBean+MySQL进行实现,即系统前台由JSP网页实现表现逻辑,中间使用JavaBean的组件实现系统内部复杂的业务逻辑,后端使用MySQL数据库实现数据逻辑。该系统基本实现了在一个在计算机网络环境下命题、组卷、答题和评分等基本的考试功能。具体来说,管理员可以对试题进行添加与修改,对试卷进行组卷,该系统的自动组卷使用了遗传算法实现。并可以对试卷进行发布。考生登陆该系统可以实现在线答题,考试结束评分系统可以自动批改客观题,并将主观题提供给老师批改,得出相应的考试分数。本文首先在绪论中介绍了在线考试的研究意义。然后详细描述了在线考试系统的组成与结构,阐述了此次设计的设计过程,包括需求分析,概要设计,数据库设计,详细设计等内容。还重点剖析了关键功能的实现,最后在一定的环境下对系统的进行了功能测试,证实了系统的可用性。关键词:在线考试系统;Struts;MVC模式;JSP;J2EE;遗传算法IIAbstractWiththeadventoftheinformationageandmodernscienceandtechnologybyleapsandbounds,especiallytherapiddevelopmentofcomputertechnology,on-lineexaminationsystemhasbecomeincreasinglypopular.ThispaperintroducesanonlineexaminationsystembasedonJ2EEarchitectureanddesignandhowtoachieve.Thesystemusesathree-tierarchitecturemodelinStrutsMVCdesignusingJSP+JavaBean+MySQLtoachievesystemperformancelogicfrontbytheJSPpage,themiddleoftheJavaBeancomponentstoachievecomplexbusinesslogicwithinthesystem,usetheMySQLbackenddatabasedatalogic.Thesystemisbasicallyrealizedinthecomputernetworkenvironmentinabasicproposition,testpaper,answer,andscoretheexaminationfunction.Specifically,administratorscanrightquestionstoaddandmodify,onpaper,testpaper,thesystemofautomaticgenerationofageneticalgorithm.Andtopublishpapers.Thecandidatescanvisitthesystemonlineanswertheendofthetestscoringsystemcanautomaticallymarkingobjectivequestionsandsubjectivequestionstotheteachertomark,drawtheappropriatetestscores.Firstly,intheintroductiondescribesthesignificanceoftheonlineexam.Secondly,Detaileddescriptionofthecompositionandstructureoftheonlineexaminationsystem,describedthedesignofthedesignprocess,includingneedsanalysis,preliminarydesign,databasedesign,detaileddesignandcontent.Alsofocusedontheanalysisofthekeyfunctions,Finally,incertaincircumstancesthesystemfunctionaltesting,confirmedtheavailabilityofthesystem.Keywords:on-lineexaminationsystem,Struts,MVCPattern,JSP,J2EE,geneticalgorithmIII目次摘要···················································································································IAbstract···············································································································II1绪论················································································································11.1在线考试系统的问题的提出············································································11.2在线考试系统的研究目的及其意义····································································11.3国外相关研究·······························································································22需求分析··········································································································32.1现状分析··································································································32.2功能需求分析····························································································42.3用例图分析··································································································42.4数据流程图分析····························································································62.5可行性分析··································································································72.5.1经济可行性·························································································72.5.2技术可行性·························································································72.5.3法律可行性·························································································82.6运行需求分析·····························································································82.7系统开发环境配置·························································································83关键技术介绍·····································································································93.1JSP技术介绍·······························································································93.2Struts框架介绍························································································103.3数据库—MySQL5.0······················································································124数据库设计······································································································134.1数据库需求分析··························································································134.2数据库概要设计··························································································144.3数据库逻辑结构设计···················································································164.4数据库表设计·····························································································175概要设计·········································································································205.1系统功能模块设计·······················································································20IV5.2系统处理流程图································································