项目报告
网络故障管理平台
THE PLATFORM OF MANAGING NETWORK
MALFUNCTION
基于 JSP 的网络故障管理平台系统
该系统是设计一个基于 Web 的校园网故障管理平台,以实现对用户申报的故障
信息的录入,故障处理单的派发,处理情况的记录以及对故障信息和派单完成情况
的统计。
在设计时综合考虑本系统的特性以及应用环境的特点,决定采用基于 B/S 模式
的传统二层开发体系结构,选择 JSP 技术作为本系统开发的核心技术。采用 Access
作为后台数据库,虽然 Access 数据库并不是与 JSP 技术最匹配的数据库,但其采用
非常友好的 Windows 图形用户界面的,方便了数据库、表的建立。在数据库访问方
面,使用 JDBC-ODBC 桥作为驱动程序。
本文首先介绍了基于 B/S 体系结构的故障管理平台设计的基本思想。通过与 ASP、
PHP 在运行速度、运行耗损、难易程度、运行平台、安全性、函数支持等多个方面的
比较,并结合本系统的特性以及其应用环境,说明了 JSP 技术的优势;接着,讲述
了数据库表创建的过程;为了使整个开发过程条理化、有序化,提高了开发效率,
通过系统功能的详细分析,将系统分为两大子系统:用户管理子系统,完成用户的
添加、权限设置、用户信息修改;故障管理子系统,完成故障的录入、故障信息的
查询、故障的派单、处理以及故障的统计。最后,说明了基于 Web 的故障管理平台
的各个模块的处理方法和代码范例,并对系统实现中遇到的关键性问题,例如分页
技术、事务处理等,进行着重介绍。
JSP;Access;故障管理;B/S
Abatract
The system is a campus network malfunction management platform based on
Web.To record the malfunction information declare by users,dispatch the task form of
dealing malfunction,record the status of disposing,and display the statistic forms.
The characteristic of this system and the application environment is considered in this
system,the tradition exploitation system structure based on B/S mode is adopted,and the
technique of JSP is chosed as the core-technology of this system.Although Access is not
the best database matching with of JSP,it’s friendly adopts the Window graphical user
interface to establish the database is its advantage.So Access 2003 is adopted as the
background database.JDBC-ODBC bridge is used as the driver to accesses the database
This article introduces the basic idea of the design of malfunction management
platform based on B/S system structure.Through comparing with ASP、PHP on running
speed、attrition、the degree of difficult、running platform、security、function support and
so on,combining with the characteristic and application environment to explain the
advantage of JSP technical and the process of establishing the database is related.For
making the whole development process consecution and improving development
efficiency,through the detailed analysis the system can be divided into two parts:the
customer managing sub-system,which implements the accession of customer 、 user
jurisdiction 、 update the customer’s information;aother part is malfunction management
sub-system,which implements to record the malfunction 、 search the malfunction
information、list the malfunction、deal and count the malfunction.At the end the designer
explains the processing method and the code example of every module in malfunction
management platform based on Web,and introduces the key problem to implement the
system,such as,pagination technology、transaction processing.
Keywords: JSP; Access; malfunction management; B/S
目 录
摘 要 ...............................................................I
Abatract ...............................................................V
第1章 绪论 ...........................................................1
1.1 选题的意义及背景...............................................1
1.2 架构模式.......................................................1
1.4 JSP 技术介绍 ...................................................3
1.4.2 JSP 技术的工作原理........................................4
1.4.1 JSP 的特点................................................5
1.4.3 JSP 基本语法..............................................6
1.5 HTML 简介 ......................................................6
第2章 系统设计 .......................................................8
2.1 系统功能概述...................................................8
2.2 模块设计.......................................................8
2.3 数据库设计 .....................................................10
2.3.1 数据库表的设计 ..........................................10
2.3.2 数据库的选择 ............................................12
2.4 系统安全性设计................................................12
第3章 系统开发环境的配置 ............................................13
3.1 操作系统......................................................13
3.2 JSP 运行环境配置 ..............................................13
3.3 JDBC 技术 .....................................................14
第4章 系统的具体实现 ................................................16
4.1 主界面的实现..................................................16
4.2 用户添加模块..................................................17
4.3 用户登录模块..................................................20
4.4 用户注销......................................................23
4.5 用户信息修改..................................................24
4.6 权限操作模块..................................................24
4.6.1 设定用户权限 ............................................25
4.6.2 判定用户权限 ............................................27
4.7 故障处理模块..................................................28
4.7.1 故障查询 ................................................28
4.7.2 故障处理 ................................................30
4.8 故障统计模块..................................................31
4.9 分页技术......................................................31
4.10 事务管理.....................................................33
结 论 ................................................................35
致 谢 ................................................................36
参考文献 ..............................................................37
第1章 绪论
1.1 选题的意义及背景
作为大学的校园网络中心,基本上每天都会接到很多的校园网络用户或网通用
户故障咨询的电话,这些故障有的可以通过电话解决,但更多的是无法当场解决的,
就需要把故障和用户记录下来,然后派发故障单给技术人员,由技术人员对故障进
行解决,最后再把解决情况记录下来,作为其他工作人员进行统计的依据,或作为
技术员解决故障的参考。因此就需要一个进行故障管理的体系,传统的做法主要是
靠“人力”解决,由外线人员将故障信息及用户信息记录在单子上,然后签发故障
处理单给技术员,技术员解决故障后,再将故障处理情况记录在单子上。这种做法
既耗时又耗力,往往使得用户的故障不能及时解决,甚至导致用户的工作受到阻碍,
这在突发故障较多的时候,更是明显;由于信息都是记录在单子上的,工作人员在
统计某项信息时,需用一个一个的查看故障单,而在统计其它信息,又要重新查看
故障单,加大了工作人员的工作量,而且统计效果也无法达到理想。
随着 Internet 的迅速发展,网络用户也大量增加,仅仅一个校园网,其用户也是
可观的;用户的增加相应的导致申报的故障增多,同时故障类型也是越来越繁杂,
传统的故障管理系统越来越不能及时解决故障,同时故障统计也越来越困难;而且
网络的迅速发展,也使得人们对网络的依赖程度越来越高,故障不能及时解决带给
用户的困扰也越来越大,甚至会决定用户的工作能否保留。为了改变这种情况,就
需要一个新的系统,这个系统可以及时的解决故障,快速地完成故障统计。
伴随着 Internet 的迅速发展,WEB 服务因其优秀的易用性成为 Internet 所提供
的最重要的功能之一,而基于 Web 所开发的系统的具有以下几个显著的特点:①支
持后台数据库,可以通过简单的 WEB 程序访问服务器端数据库,动态地将数据库中
的信息、发布到 WEB 网站上;②动态、可控的内容显示,可以根据用户不同的要求
显示不同的页面;③强大的可扩充性,可以利用一定的程序接口实现各种各样的扩
充功能。这些功能刚好可以很好的解决传统的故障管理系统的不足之处。
1.2 架构模式
目前流行的系统架构模式有两种,一种是基于局域网的 C/S(Client/Server)
架构体系,另一种是应用于广域网 B/S(Brower/Server)架构。