Professional Documents
Culture Documents
Abstract—Based on the modern technology of MVC and In order to satisfy those demands and provide relative
J2EE study, Multi-layer structure of J2EE which has been services for both teachers and students, as well as to create a
realized by FreeMarker, WebWork and Spring has been brought high efficient and convenient environmental in campus, a wide
forward, the student attendance management system for all range use of Web system for all college students becomes a
college students which based on MVC has been designed and must.
implemented in this paper. This will use for reference for other
Web Applications system based on J2EE platform. II. THE DESIGN OF SYSTEM WEB APPLICATION
The system is controlled by WebWork while data or status FRAMEWORK
and logic process are enforced by “Action”. Default interceptors
and interceptors were used to decide whether or how to carry out The system uses Multi-layer structure of J2EE which has
the “Action” before “Action” was executed. Interceptors were in been realized by FreeMarker, WebWork and Spring. The
use to complete a series of security, and logs and calibration Framework will realize the MVC pattern of development,
work. To receive a dynamic data from WebWork is by using the allowing low coupling degree of presentation layer, business
technology of FreeMarker in the performance. Many macros logic layer and database server layer, realizing a small amount
were defined to unify the style of system pages, reuse of code of code can be modified to complete changes in system
duplication and improve efficiency. A light weight tool called functionality and database server.
“Spring Ioc Container” is used to manage “Service” in the
business logical layer. And JDBC Template is used for blocking A. Presentation Layer
some complex areas from database and decrease the complexity 1) Page Resources Layer--HTML+CSS+JavaScript
of its process. Three technologies have been used in page resources layer:
The system has been preliminary run in campus by testing and HTML performs structure of document, CSS defines style of
debugging. The result indicates that the direction of this document and JavaScript decides behavior of document.
technology study is correct and the design of this program is HTML is the most common page element markup
essential. language, used for the presentation of document structure. Its
Keywords-Student Attendance Management System; MVC;
shortcoming is to mix data content with its presentation, which
WebWork; FreeMarker; Spring
undoubtedly increase the difficulty and workload of
I. BACKGROUND development. Therefore, the system will minimize the use of
HTML.
As the rapid growth of educational system in China, people CSS is used to control a display style of interface elements
now have more demands on teacher’s knowledge level and the and define the style of the document.
way of teaching method including both hardware and software. When the static pages are identified, their specific behavior
However, the management of teaching method receives more will be achieved by JavaScript. The scripts which are written
demands than others. Gradually the existing student by JavaScript are used to response page events which are used
management system cannot meet the needs of teaching to interact with the user and carry out input data validation.
management, mainly manifested in the following aspects:
2) Page Template Layer-FreeMarker
(1) The various management systems quite is isolated,
The presentation layer is realized by JSP in traditional Web
which cannot guarantee that these teachers who engage in the
development. Although JSP is very powerful, but also often be
teaching work and those teachers who engage in the student
abused and lead to some undesirable consequences, such as
work simultaneously to grasp student’s situation of life and
logic and the presentation will be mixed together, undermining
study and student’s thought tendency.
normal decomposition of the responsibilities of artists and
(2) System has not provided the corresponding service for
programmers, so that it is difficult to read and maintain JSP
the student, truly has not achieved student-centered.
pages. Therefore, the presentation layer is implemented by
(3) Expansibility is poor. With the Institute of expansion
FreeMarker in the system.
and the number of students increasing, the original system
FreeMarker is a template engine: a generic tool to generate
cannot meet the need well.
text output (anything from HTML to autogenerated source
(4) Data security is bad. Data security cannot be guaranteed
code) based on templates. It's a Java package, a class library for
because there is no independent database server.