This article demo download address: http://www.wisdomdd.cn/Wisdom/resource/articleDetail.htm?resourceId=1078
This example introduces the online examination system. Bootstrap technology is used in the foreground, structs and herbinate are used in the background, and the database is mysql. The system is divided into two roles: administrator and student. Fraction
The example code corresponding to the project can be obtained through the [Download Example] button on the right
Development tools: MyEclipse10, JDK1.7, Tomcat7, MySql5.5.60
[Contents included in the project] (see the figure below):
【Exam】 Project source code
[db_exam.sql] database script
【Online Exam System Paper.doc】 Graduation Project
【Example function】
1. Enter the user name and password on the login page for students (see the link below for the login page)
2. Students select the corresponding subject in the menu [Online Exam] to answer the question. The total time for answering the question is 20 minutes, and the countdown is used to control the time. After the answer is completed, submit the test paper
Get scores in real time, query historical test data in the [Results Query] menu, change the login password in the [Modify Password] menu, and log out in [Exit System]
3. On the administrator login page, enter the user name and password (see the link below for the login page)
4. Administrator functions: [Candidate Information Management], [Candidate Results Query], [Exam Paper Management], [Question Management]
【Project configuration】
1. Modify database connection information in hibernate.cfg.xml
1
2
3
4
5
|
<!--数据库连接设置 -->
<property name=
"connection.driver_class"
>com.mysql.jdbc.Driver</property>
<property name=
"connection.url"
>jdbc:mysql:
//localhost:3306/db_exam</property>
<property name=
"connection.username"
>root</property>
<property name=
"connection.password"
>root</property>
|
2. All jar packages under WEB-INF/lib are referenced to the project
3. Import the db_exam.sql script into the database
【Example renderings】
student role
Login page link: http://localhost:8080/Exam/login.jsp Login user: JS123/123
Administrator role
Login page link: http://localhost:8080/Exam/login2.jsp Login user: admin/123456