基于J2EE技术的网上考试系统的开发与设计_第1页
基于J2EE技术的网上考试系统的开发与设计_第2页
基于J2EE技术的网上考试系统的开发与设计_第3页
基于J2EE技术的网上考试系统的开发与设计_第4页
基于J2EE技术的网上考试系统的开发与设计_第5页
已阅读5页,还剩30页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、北京科技大学天津学院本科生毕业设计(论文)本科生毕业设计(论文)-5-基于j2ee技术的网上考试系统的开发与设计摘要在网络技术逐渐渗入社会生活各个层面的今天,传统的考试方式也面临着变革,而网络考试则是一个很重要的方向。基于网络的考试系统是传统考场的延伸,加上数据库技术的利用,大大简化了传统考试的过程。因此网络考试系统是电子化教学不可缺少的一个重要环节。所以现在较好的考试方法为网络考试,考生通过姓名、准考证号码或口令进行登录,试卷可以根据题库中的内容即时生成,可避免考试前的压题;而且可以采用大量标准化试题,从而使用计算机判卷,大大提高阅卷效率;还可以直接把成绩送到数据库中,进行统计、排序等操作。

2、因此,采用网络考试方式将是以后考试发展的趋势。网络考试系统的实现技术有多种,我们开发制作的网络考试系统是采用典型的浏览器/服务器型的b/s架构,系统按照功能的分类划分为相对独立但又相关的两大部分,其开发主要包括考生考试应用程序的开发、服务器考试管理系统应用程序的开发。本考试系统以windows xp操作系统、mysql为数据库平台,开发工具为myeclipse 6.5。myeclipse 6.5是非常流行的基于java语言的可视化编程工具,mysql 是一个小型关系型数据库管理系统。首先建立考试系统应用程序框架,然后,对初始原型系统进行需求迭代,不断修正和改进,直到形成满意的可行系统。在开发过

3、程中遵循了软件工程原理,经历了需求分析、概要设计、详细设计、测试与配置几个阶段,直至后期的系统维护,从而保证了软件的质量。论文内容共分六部分:第一部分是引言,简要介绍了网络考试系统,开发工具的选择;第二部分是网络考试系统功能分析与应用程序框架的建立,确定了系统的确切需求同时建立考试管理系统应用程序框架;第三部分是考试管理系统概要设计,将服务器考试管理系统按照功能的分类划分为相对独立但又相关的五大功能模块,并在此基础上逐步细化;第四部分是考试管理系统详细设计;第五部分是测试与调试;第六部分是致谢页。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系统目标71.2可行性分析71.2.1现有的数据库程序的分层结构71.2.1.1 传统二层结构71.2.1.2 网络分布式应用系统71.2.2xml语言81.3 本系统的选择方案91.4 建模工具的选择92 基于uml的系统分析102.1用例图102.1.1 用户关系图102.1.2 系统用例图102

16、.2 顺序图112.2.1 老师活动顺序图112.2.2考生活动顺序图122.3 类图133 数据库的分析设计143.1 图143.2 表设计143.2.1 用户表设计143.2.2 课程表设计153.2.3 试题表设计153.2.4 试卷表设计163.2.5 成绩表设计163.2.6 试卷试题表174 系统实现184.1 开发平台的选择184.2 编辑工具的选择184.3 系统编码184.3.1 核心配置文件web.xml184.3.2 spring配置文件applicationcontent.xml204.3.3 struts2.0配置文件struts.xml254.3.4 dwr配置文件

17、dwr.xml29结论31参 考 文 献32附 录34摘要44致谢55引 言 现在网络正在改变着传统的教育方式,网络教育也越来越多,就算是传统的教育方式下,把考试搬到网络上也是一种趋势。考试的无纸化网络化不仅能有效减少老师的工作量,很好的利用计算机的优势,提高工作效率,也能使考试更加公平、公正。所以就一定要构建一个性能良好安全可靠的可以满足大量学生同时使用的网络考试系统。本原型系统主要功能如下:1. 学生可以在网上进行考试,考试结束后由计算机批改试题给出分数,并记录成绩。2. 老师可以在网上对课程,试题,试卷进行相应的操作,并可查询学生成绩等功能。1需求分析1.1系统目标本网络考试系统应该能满

18、足学校几千学生在任何地方、任何时间都能参加考试。本系统要让学生可以在网上进行考试,考试结束后由计算机批改试题给出分数,并记录成绩。老师可以在网上对课程,试题,试卷进行相应的操作,并可查询学生成绩。另外为了让考试比较公平,试卷的试题由计算机随机从题库抽取。1.2可行性分析1.2.1现有的数据库程序的分层结构1.2.1.1 传统二层结构传统的二层式程序,也就是客户/服务器(client/server)结构,这种程序相对简单、清楚、开发容易,其结构如图1。客户机都通过网络连接到同一个数据库上,不过这样结构问题很多,最主要的就是性能较差维护困难已经不适应在因特网(internet)上使用。数据同一性和

19、完整性难以控制。同时由于每一个客户机都必须安装特定的软件,且这种客户端软件体积还比较大,用户使用起来非常不方便,所以目前已经面临淘汰。不过这样的系统开发比较简单,对开发人员的技术要求也不高,在内部局域网上使用还有一定的市场。1.2.1.2 网络分布式应用系统近几年来因特网飞速发展,人们的生活因为网络而在慢慢的改变。现在的个人电脑(pc)上都安装了浏览器(browser)因此人们就利用浏览器来作为客户端程序,万维网服务器(web server)作为中间层和客户端沟通服务器,这就是现在流行的b/s(browser/server)结构方式。在这种结构下,本地的计算机无须安装任何客户端程序,只要有浏览

20、器,可以使用因特网就可以使用系统了。他不仅仅减少了开发客户端带来的成本,最关键的是,大大减少了系统维护的成本和时间,当修改系统的时候不需要对客户做任何的改动。并且客户也可以在任何计算机上使用你的系统而不要做特别的设置。1.2.2 xml语言xml(extended markup language)是一种标记语言,就象我们熟悉的html一样,但是xml的标签是由人们根据自己的需要来定制的,也就是说,任何词和字都可以做为标签来用,只要能准确的表达数据的属性。例如当我们要表达一个人的姓名的时候用html也许我们会这样做:“张三”,但如果用xml我们就可以这样做:“张三”。数据表达的准确性xml绝对比

21、html好多了!准确表达数据的含义这就是xml带来的最大好处。有了xml,我们就能定制各行各业的xml标签,这样对于要传输的数据就能用文本方式传送,并且只要对方有一份标签的定义文件就可以理解我们所表达的意思,从而在任何程序之间,不管他是用什么语言编写的;任何系统之间,不管他是运行在什么cpu上的,是windows、linux还是mac os;任何人之间,无论他是什么国籍,说什么语言,是否懂得你的语言,自由交换信息了。而这些正适应了目前因特网的发展,适应了人们沟通交流的需要。xml出现短短几年就得到了广泛的应用,目前新推出的软件几乎都会支持xml。例如微软的dot net系列软件、office系

22、列软件等等。不出几年,xml就会代替html成为因特网上标准的标记语言。本系统所有配置文件全部使用xml语言,便于系统解析,减小开发系统的复杂度,减少系统处理时间,减少网络传送量,从而提高效率。1.3 本系统的选择方案本系统应用于因特网,并且要满足一个学校几千学生考试的需要,因此本系统决定采用b/s结构,并且数据库使用mysql,开发框架为ssh(struts2+sping2.5+hibernate3.2),编码目录层次采用:com.itceping.action(与struts有关的);业务处理层:com.itceping.service;数据操作层:com.itceping.dao;实体类

23、:com.itceping.po(跟hibernate有关的);工具类:com.itceping.util。1.4 建模工具的选择以uml语言建模应该是以rational公司的rose工具为最好。不过rose太贵了,并且rose比较庞大,使用不是太方便。sybase公司出品的powerdesigner建模工具也支持uml,还提供一个45天的试用版,在数据库建模上也有他独到的地方。因此建模工具就选用powerdesigner。2 基于uml的系统分析 2.1用例图2.1.1 用户关系图2.1.2 系统用例图2.2 顺序图2.2.1 老师活动顺序图2.2.2考生活动顺序图2.3 类图3 数据库的分

24、析设计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

25、 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是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 试卷表设计名称类型长度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_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 系统实现4.1 开发平台的选择 本系统由于是采用的微软公司所推出的分布式web应用构架,所以开发平台使用了windowsxp,数据库选用mysql,web服务器程序使用tomcat6.0。由于使用了xml,所以客户端必须是ie5.0以上版本的浏览器才能正常使用本系统。4.2 编辑工具的选择 本系统以java语言为基础,采用ssh为框架,jsp,servlet

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论