Design and Implementation of J2EE-based Online Examination System Yingjie Fu



Similar documents
The Design of B2B E-commerce System Based on MVC Model and J2EE

How To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post

Research Article. ISSN (Print) *Corresponding author Lili Wang

Tutorial: Building a Web Application with Struts

PHP Web Authoring for Database Management based on MVC Pattern

WEB APPLICATION DEVELOPMENT. UNIT I J2EE Platform 9

Design of Electronic Medical Record System Based on Cloud Computing Technology

Open Access Design and Implementation of Online Shopping System Based on the Struts Framework. Zhang Li 1,* and Zhao Luhua 2

Design and Implementation of Supermarket Management System Yongchang Rena, Mengyao Chenb

NetBeans IDE Field Guide

An introduction to creating JSF applications in Rational Application Developer Version 8.0

Portals, Portlets & Liferay Platform

Title Page. Hosted Payment Page Guide ACI Commerce Gateway

Customer Bank Account Management System Technical Specification Document

MVC pattern in java web programming

Construction of Library Management Information System

Course Name: Course in JSP Course Code: P5

JEE Web Applications Jeff Zhuk

DTS Web Developers Guide

An Architecture for Web-based DSS

AD-HOC QUERY BUILDER

zen Platform technical white paper

In this chapter, we lay the foundation for all our further discussions. We start


Web Presentation Layer Architecture

Web Container Components Servlet JSP Tag Libraries

Development and Research on Remote Online Education Information System Based on Web

Design Approaches of Web Application with Efficient Performance in JAVA

Commercial software development with the help of J2EE architecture and MVC

Client-Server Architecture & J2EE Platform Technologies Overview Ahmed K. Ezzat

IBM Rational Rapid Developer Components & Web Services

J a v a Quiz (Unit 3, Test 0 Practice)

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

Web Application Architectures

Development. with NetBeans 5.0. A Quick Start in Basic Web and Struts Applications. Geertjan Wielenga

Multi Factor Authentication API

The Research on Industrial Information Monitoring System Based on B/S Structure Xuexuan ZHU1, a

Introduction to Sun ONE Application Server 7

Configuring user provisioning for Amazon Web Services (Amazon Specific)

Design and Implementation of Web front-end based on Mainframe education cloud

JAVA/J2EE DEVELOPER RESUME

Web-based Automobile Sales Management System. Huabo Xiao

Study on Architecture and Implementation of Port Logistics Information Service Platform Based on Cloud Computing 1

The design of an open laboratory information management system based upon a browser/server (B/S) architecture

Performance Modeling for Web based J2EE and.net Applications

Complete Java Web Development

CS Developing Web Applications with Java Technologies

A framework for web-based product data management using J2EE

What means extensibility?

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Tutorial: Design Patterns in the VSM

Research on Sports Information Technology Education Platform Based on ASP-NET Technology

HP A-IMC Firewall Manager

What Is the Java TM 2 Platform, Enterprise Edition?

Skyward Creating and Administering Online Assignments

Internet Engineering: Web Application Architecture. Ali Kamandi Sharif University of Technology Fall 2007

How to Build an E-Commerce Application using J2EE. Carol McDonald Code Camp Engineer

An Easy, Secure and Reliable Online Shopping & Payment System

Perceptive Intelligent Capture Solution Configration Manager

Java Server Pages and Java Beans

CHAPTER 8Managing Software Projects with User Stories

Construction of Social CRM System based on WeChat Public Platform. Linjun Sun

1. Introduction 1.1 Methodology

Struts Tools Tutorial. Version: M5

Performance Optimization of Teaching Web Application based SSH Framework

Building Web Services with Apache Axis2

LearningOnWeb development of a SCORM compliant Learning Management System

Modern Accounting Information System Security (AISS) Research Based on IT Technology

Web Application Development

Research and realization of Resource Cloud Encapsulation in Cloud Manufacturing

How To Use Syntheticys User Management On A Pc Or Mac Or Macbook Powerbook (For Mac) On A Computer Or Mac (For Pc Or Pc) On Your Computer Or Ipa (For Ipa) On An Pc Or Ipad

Accessing Data with ADOBE FLEX 4.6

Mobile App Design Project #1 Java Boot Camp: Design Model for Chutes and Ladders Board Game

WebSphere Server Administration Course

Application of MVC Platform in Bank E-CRM

CSc 230 Software System Engineering FINAL REPORT. Project Management System. Prof.: Doan Nguyen. Submitted By: Parita Shah Ajinkya Ladkhedkar

CloudCERT (Testbed framework to exercise critical infrastructure protection)

Chapter 4. Architecture. Table of Contents. J2EE Technology Application Servers. Application Models

Web Application Developer s Guide

Research and Design of Universal and Open Software Development Platform for Digital Home

Japan Communication India Skill Development Center

Model-View-Controller. and. Struts 2

Jobs Guide Identity Manager February 10, 2012

Case Studies of Running the Platform. NetBeans UML Servlet JSP GlassFish EJB

Using LDAP Authentication in a PowerCenter Domain

Oracle9i Application Server: Options for Running Active Server Pages. An Oracle White Paper July 2001

The Study on Web GIS Architecture Based on JNLP

Performance Comparison of Persistence Frameworks

WebLogic Server 6.1: How to configure SSL for PeopleSoft Application

Liferay Enterprise ecommerce. Adding ecommerce functionality to Liferay Reading Time: 10 minutes

Client/server is a network architecture that divides functions into client and server

<Insert Picture Here> Betting Big on JavaServer Faces: Components, Tools, and Tricks

SOFTWARE ARCHITECTURE FOR FIJI NATIONAL UNIVERSITY CAMPUS INFORMATION SYSTEMS

Transcription:

International Conference on Intelligent Systems Research and Mechatronics Engineering (ISRME 2015) Design and Implementation of J2EE-based Online Examination System Yingjie Fu Department of Teaching Affairs Jilin Agricultural University,Changchun, China jlaufyj@126.com Keywords:J2EE; B/S mode; three layer architecture; online exanination system Abstract.The paper presents the design and implementation of Online-test System Based on J2EE, the application of B/S and C/S model to a combination of design, and divides the system based on module. Then the paper provides the design of data program, followed by a discussion of the ap-proach of automatically producing test paper. Introduction A. J2EE J2EE is an architecture which utilizes Java platform simplification and enterprise solution to develop, deploy and manage related complex problems. By providing a unified development platform, J2EE reduces the cost and complexity of the development in multi-layer application and strongly supports the integration of existing applications. It completely supports the Enterprise JavaBeans, Servlet and JSP. With the good guidance, it also supports the package and deployment of applications and adds the directory support in order to enhance the security system and improve the performance. B. Struts Struts is a comparatively mature framework in Web development. Struts also is a reusable MVC design which is made up of a set of mutual-cooperate classes and the mark of Servlet and JSP. Struts has some advantages like component modularity, flexibility and reusability and it greatly simplifies the development of Web applications. It reasonably separates the user presentation logic, business logic, and control logic to make the development process simple and clear, and improve maintainability and reusability of software. Figure 1 shows the architecture of Struts framework. C. JavaBean JavaBean is a model of software component. By the interaction with other software components, it determines how to establish and reuse the software components which are called Bean. Bean uses the existing Bean to develop new programs and establish the relationship between them in next step. In the definition of JavaBean specification which was given by Sun Enterprise, the official statement of Bean is: "Bean is a reusable software component which is based on Java Bean specification of Sun Enterprise. It can be visualized by programming tools." Therefore, JavaBean has four basic characteristics: independence, reusability, utilization in visual development tools, and state which can be saved. 2015. The authors - Published by Atlantis Press 1193

Up date Http Response Chent Browser Forward Controller Servlet Dispatch Controller Action Event Http Request Struts-config.xml View Jsp Figure 1. Model Bussiness Logic The architecture of Struts framework System Architecture The J2EE-based online examination system uses B/ S model to establish a layer structure which divides the system into the application layer, business layer and data layer. The layer structure not only improves the computing speed of data, but also reduces the difficulty of system maintenance. Figure 2 shows J2EE-based online examination system. User returns Application layer Business Layer Submit request Access Back to Results Business Layer Database System Design Figure 2. J2EE-based online examination system. The J2EE-based online examination system can be divided into three modules. They are student-online-examination module, teacher-management module and system-management module. Figure 3 is the system module structure. 1194

System Management Module System maintenance Question bank Teacher management Student management Online Examination System Teacher Management Module Query results Paper management Question bank management Online topic Student test module Query results Online answer Figure 3. The system module structure. D. Manager Subsystem Due to the function of user management, managers can add or delete users, and modify the information and permission of users (managers, teachers, and students). The department management which works on the whole information of department involves the operation of adding, deletion and modification of department information. E. Teacher Subsystem The function of question bank management is used to implement the operation of adding, deletion and modification of subjects and the questions of exams. These questions include single choice questions, multiple choice questions, true or false questions, fill-in-the-blank questions and other objective questions, as well as brief answer questions, essay questions and other subjective questions. It uses the same interface to log in every type of questions and normalizes the question-added interface. The managing function of test paper formation means that teachers adopt a specific test paper strategy to set the name, time, degree of difficulty, question types and other related information, and then the test paper will be automatically generated and stored into the question bank. Online test paper-marking mainly refers to the phenomena that teachers only mark the subjective questions. Teachers use the score inquiry system to check students' test scores and make an analysis and comparison of them. F. Student Subsystem Online-examination is the main functional interface of student subsystem. Students should choose the test subjects. After that the system randomly selects a set of test paper from the question bank. The paper will be automatically submitted by the system when the time comes. Students can also click on the submit button before the time limit. Then the objective questions are marked by the 1195

automatic scoring system while subjective questions are by teachers. The score inquiry system can t be used by students until teachers finish the job of marking. Implementation of main functional modules G. User Login Module Users of the system can be split into three categories: system managers, teachers and students. They have different permissions to different interfaces. The users must be authenticated firstly, then allowed to enter the system and visit the appropriate page. The traditional J2EE Web design method was applied to the realization of user login module. The module was divided into five layers, which from the bottom up are: the database layer -> the ORM layer ->the business logic layer -> the control layer -> presentation of view layer. Struts-config.xml Client browser 1.HTTP request 6.HTTPrespond 5 Forwardi HTTP Actionform 2. Request fill form Bean ActionServlet View(JSP) 3. request 4.Calling JavaBean JavaBean Action Figure 4. The architecture of Struts Figure 4 shows the architecture of Struts. The four core components of Struts are: ActionServlet: It is mainly responsible to organize the information of HTTP clients requests and forward it to the appropriate processor according to the specified description of configuration files. Action Classes: It is an adapter between clients requests and business logic processing. Its function is separating the request and business logic. Action Mapping:It is responsible to forward the information of clients requests to the relevant Action class. ActionForm Bean: It is responsible for the non-persistent data storage of the information shift in an application system; it can also be applied to store the intermediate model state which will be used by a view. H. The Algorithm Analysis of Test Paper Formation The test paper formation is an important part of the online test system. Automatic test paper formation means that the system select the questions automatically from the question bank so as to form a test paper according to the requirement raised by teachers, like question-types and degree of difficulty. Common methods of test paper formation involve the randomly-selected algorithm, the backtracking heuristic algorithm, genetic algorithm. This system adopted the randomly-selected algorithm. Required parameters: degree of difficulty, coverage, number of questions of each type. Processing: 1 Obtain the parameters: degree of difficulty, coverage, total scores, number of questions of each type; 2 Calculate the coverage of each type of questions and the number of questions that meet the 1196

requirement of difficulty; 3 If the number of a certain type questions is insufficient, the formation fails; 4 Calculate the total scores of inputted questions; 5 If the total scores of each type of questions doesn t match with the users requirement, the formation fails; 6 Take out all the questions of a certain type that meet the requirement; 7 Randomly register to a record according to the random function and store it into the corresponding question form (guaranteed that the same question won t be selected again), repeat, until you obtain this type of questions. 8 Repeat 6 and 7 until you obtain all the required types of questions Part of the code of the automatic test paper formation: Vector vector = new Vector(); for (i = 0; i < m; i++) // Obtain various types of questions // Obtain all the questions of this type and put them into vector st = con preparestatement("select * from shiti where type=? and chapter>=? and chapter<=?"); st.setint(1, typeid[i]); st.setint(2, chapter_start); st.setint(3, chapter_end); rs = st.executequery(); n = 0; while (rs.next()) n++; vector.add(new Integer(rs.getInt("stid"))); int random[] = new int[typenum[i]]; int j, k; int stid; boolean another; for (j = 0; j < typenum[i]; j++) another = true; random[j] = (int) (Math.random() * n); for (k = 0; k < j; k++) if (random[j] == random[k]) another = false; j--; break; if (another) stid = ((Integer) vector.get(random[j])).intvalue(); st = con.preparestatement("insert into sjst (sjid,stid,sttype) values (?,?,?)"); st.setint(1, sjid); st.setint(2, stid); st.setstring(3, typename[i]); st.executeupdate(); vector.removeallelements(); Entry algorithm is as follows: Protected void btnsave_clich(object sender, EventArgs e) 1197

Int count=0; String ID= ; If (Action== add ) ID=TQuestionBLL.GetMaxId().ToString(); else if (Action== edit ) ID=Request.QueryString[ ID ].ToString(); If (ID.IndexOf(, )==0) ID=ID.Substring(1); Count=TQuestingBLL.ExecuteSql(SqlArr); If (count==0)\ PU.Alert( Failed to save!,this); Return; Else PU.Alert( Saved successfully!,this) Return; Conclusions The J2EE-based online examination system realizes the management of test question bank, the automatic and manual test paper formation, online examination, automatic marking, score inquiry, score analysis and some other functions. The system s functional design almost meets all the requirement of tests of the whole subjects. It has a positive practical significance in reforming the traditional method of examination and improving the efficiency and quality of teaching. References [1] W. Li, Designing and Implementing the Online Examination System Based on Web and.net Three Layer Architecture, Journal of Baoding University, vol. 22, pp.80-83, July 2009. [2] J. Z. Yuan, Design and Implementation of Online Examination System Based on ASP Technology, Computer Knowledge and Technology, vol. 15, pp.31-33, July 2014. [3] Y. Xu, Design and Implementation of J2EE-based Online Examination System, Computer Development & Applications, vol. 12, pp.76-78, April 2014. [4] J. X. Qin.. The Design and Implementation of Online-test System Based on J2EE, Computer Knowledge and Technology, vol. 15, pp.391-393, July 2008. [5] R. Wang, Wang Shilin. The Design of the Network Examination System Based on J2EE. Computer Engineering and Applications, vol. 28, pp.211-214, March 2005. 1198