3.4 泰山学院毕业论文 下载本文

泰 山 学 院 本科毕业论文

基于B/S架构的Java考试系统的设计

DESIGN OF JAVA EXAMINATION SYSTEM BASED ON B/S

STRUCTURE

林辉 2004001342

专 业 名 称 软件工程 申请学士学位所属学科 工 学 指导教师姓名、职称 白学明 讲师

2008 年 5 月 1日

摘要

摘 要

近年来,随着因特网技术的发展,在线考试系统成为网络应用研究的热点之一,在线考试能很好地解决传统考试中存在的成本高、管理不方便等问题。Web开发语言的发展,也为在线考试系统提供一个可靠的技术支持。

在线考试系统本身是一个很大的系统,完成一个真正可以使用的在线考试系统还需要更深入的研究和开发,本文主要是通过建立一个在线考试的原型系统,来讨论如何实现考试系统中的管理考题、考卷、考试以及成绩的功能。本系统涉及到两类用户:教师和学生。教师负责出卷,考试负责考试。考试完成后,由系统评定学生成绩供教师和学生查看。

本论文首先分析在线考试系统的优势,然后阐述如何运用Java技术实现基于B/S架构的在线考试系统,同时阐述Dojo这一开源JS框架在Java系统中的应用。

关键词:考试系统,Java,Dojo,B/S

I

Abstract

ABSTRACT

In recent years,with the development of the Internet,online examination has become one of the hotspot for the network application.Online examinations solve many problems that existed in traditional exams, such as high costs and inconvenience in management. The development in web language also provides some reliable techical support for online examination systems.

Online examination system itself is a great system. The completion of an online examination system which is truely useful needs in-depth research and explorement.This paper mainly discusses the question of how to achieve the function of managing examination tests, examination papers and examinations in the examination system by establishing an online examination of the prototype system. This system involves two categories of users: teachers and students. Teachers are responsible for the examination papers, and students are responsible for the examination. After the examination completed, the system can evanulate the result of students' examinations, and it is convenient for both teachers and students to check the results.

This paper firstly analizes the advantage of the system of online exam, and then states how to used java technologies to develop system of online exam on the basis of the B/S frame. At the same time, it introduces the application of Dojo, the open source JS frame in a Java application system.

Key words: Examination System,Java,Dojo,B/S

II

目录

目 录

1 引言 -------------------------------------------------------------- 1 2 在线考试系统的优势 ------------------------------------------------ 1 3 考试系统的分析和设计 ---------------------------------------------- 2 3.1 相关技术介绍 ---------------------------------------------------- 2 3.2设计思想 --------------------------------------------------------- 3 3.3运行环境 --------------------------------------------------------- 4 3.4开发工具 --------------------------------------------------------- 4 3.5业务构架 --------------------------------------------------------- 4 3.6系统构架 --------------------------------------------------------- 5 3.7实体对象分析 ----------------------------------------------------- 6 3.8数据库设计分析 --------------------------------------------------- 8 4 考试系统的具体实现 ----------------------------------------------- 10 4.1 Dojo工具包的引入 ----------------------------------------------- 10 4.2系统各模块具体实现 ---------------------------------------------- 12

4.2.1数据库连接模块 -------------------------------------------- 12 4.2.2登录模块 -------------------------------------------------- 14 4.2.3教师模块 -------------------------------------------------- 18 4.2.4学生模块 -------------------------------------------------- 28 5 结束语 ----------------------------------------------------------- 31 参考文献 ----------------------------------------------------------- 31 致 谢 ------------------------------------------------------------- 33

III