李艳利毕设.ppt

人力资源管理系统

收藏

资源目录
跳过导航链接。
人力资源管理系统.zip
李艳利毕业设计
李艳利毕设.ppt---(点击预览)
李艳利毕业设计论文.doc---(点击预览)
Personnal
.settings
.jsdtscope
org.eclipse.core.resources.prefs
org.eclipse.jdt.core.prefs
org.eclipse.wst.common.component
org.eclipse.wst.common.project.facet.core.xml
org.eclipse.wst.jsdt.ui.superType.container
org.eclipse.wst.jsdt.ui.superType.name
build
classes
src
com
applicationContext-action.xml
applicationContext-dao.xml
applicationContext-service.xml
applicationContext.xml
struts-dept.xml
struts-jfreechart.xml
struts-menu.xml
struts-role.xml
struts-staff.xml
struts-user.xml
struts.xml
WebContent
css
datepicker
images
js
META-INF
WEB-INF
addDept.jsp
addRole2.jsp
addStaff.jsp
addUser.jsp
index.html
index.jsp
left.html
left.jsp
listDept.jsp
listDeptStaff.jsp
listOnStaff.jsp
listStateStaff.jsp
listUser.jsp
login.html
main.html
mainfra.html
page.jsp
statSelect.jsp
success.jsp
top.html
updateStaff.jsp
updateStaffDept.jsp
updateStaffState.jsp
updateUser.jsp
xt.html
.classpath
.project
personnal.sql
Personnal.zip
压缩包内文档预览:

资源预览需要最新版本的Flash Player支持。
您尚未安装或版本过低,建议您

人力资源管理系统,人力,资源管理,系统
编号:31418151    类型:共享资源    大小:75.70MB    格式:ZIP    上传时间:2019-12-13 上传人:遗**** IP属地:湖北
尺寸:28x22像素    分辨率:96dpi   颜色:RGB    工具:
30
积分
关 键 词:
人力 资源管理 系统
资源描述:
人力资源管理系统,人力,资源管理,系统
内容简介:
太原科技大学华科学院毕业设计(论文)华科学院HUAKE INSTITUTE OF TAIYUAN UNIVERSITY OF SCIENCE & TECHNOLOGY 毕业设计(论文)题目:人力资源管理系统 学 生 姓 名: 李艳利 学 名: 201022030211 班 级: 计算机102202H 所属院(系): 计算机科学与技术系 指 导 教 师 : 王海容 2014 年 5 月 20 日太原科技大学毕业设计(论文)任务书学 生 姓 名李艳利指 导 教 师王海容设计(论文)题目人力资源管理系统主要研究内容1.Java面向对象程序设计2.JavaEE企业开发方式以及相关技术3.Java平台的实现研究方法按照软件开发CMM标准实施,具体包括,需求分析、体系结构设计、模块设计、数据库设计等相关设计。主要技术指标(或研究目标)Java2EE企业核心技术(servlet、jsp、jdbc、jstl、jQuery)主要参考文献1.实践者的研究方法 (美)普雷斯曼 2.Java Web整合开发王者归来 刘京华3.JavaScript权威指南 (美)弗兰纳根4.Java与模式 闫宏 5.HTML+CSS网页设计与布局从入门到精通 温谦学院(直属系):计算机科学与技术系 时间: 2014年 5 月 20 日人力资源管理系统的设计与实现摘要 本系统的开发基于经典的瀑布模型。在依次完成可行性分析、需求分析、总体设计、详细设计和编码实现以及测试等环节后最终建立了基于B/S结构的企业OA管理系统。在开发过程的相关环节所应用的技术及其实现的目标包括,利用POI技术实现含查询出的人员信息的excel文件的下载,使用JFreeChat技术绘制饼图,利用JavaScipt和JQuery技术实现对用户输入是否合法的判断。经测试合格后,本人力资源开发系统可以实现的功能包括:1. 个人管理。实现添加新员工、在职人员管理、离退人员管理 停职留薪人员管理、挂靠人员管理内部的查询与统计;2. 部门管理。实现添加新的部门和查看所有部门的详细信息;3. 人员调整。可实现对员工姓名的模糊查询得到员工的部分个人信息对其进行部门的调整和人员状态的调整;4. 统计查询。通过学历,状态和职称这三个条件进行查询,可以将本页面的表格用excel的形式下载。而且可以分别显示按学历,状态和职称这三个分类标准形成的人员构成比例分布图;5. 系统管理。可实现新用户的添加;本系统的上述功能实现了对企业员工的科学管理和统一调配,基本满足了企业提出的要求。关键字:人力资源管理系统; SSH2,JfreeChat, POI,AJAXHuman Resource Management System of Shanxi4370PlantAuthor: yanli Li Tutor: hairong WangAbstractThedevelopment of this systemisbasedontheclassicwaterfall model. After completing such job as feasibility analysis, needs analysis, overall design, detailed design, coding and test in succession, the human resource management system based on B/S structure is established eventually. The technology appliedinthe process of developing this system and itsgoals include the following, achieving the integration andconvenient of this system throughthe combination of such three classicalframework as Struts2,Spring and hibernate; getting the pie chart of the compositionratio by the integration of Struts2 and JfreeChat; accomplishing the download of excel files containingemployee information by means of POItechnology; determining thenameofa registered userwhether to repeat by way of AJAX technology; completing the judgmentofthe legality ofuser,s input through JavaSciptandJQuerytechnology; achievingquickinput ofthebirth date of employees by using calendarplug-ins.After passing the test, the function of this human resource management system concludes the following:1. Personal management.Achieve add new employees,service personnelmanagement,retired personnel management,Suspension without pay personnel management,personnel management anchored internal inquiry and statistics;2.Departmental management.Add a new department to achiece and view details of all sectors;3. Personnal adjustments.Fuzzy queries can get part of the name of the employee personnal information of employees and personnel to be adjusted to adjust the state sector;4.Statistical inquiry.Query through education,status and title of these three conditions,the form can be downloaded in the form of the page to excel.And you can show people by educaion,sttus and title of the standard form of these categories constitute the ratio of distribution;5.System management.Add a new user can be realized.The functions above achieves scientific management andunified deploymentofemployees and meet therequirementsoftheenterprise basically.Keywords: human resource management system; SSH2,JfreeChat,POI,AJAX 目 录摘要I第一章 系统概述11.1 系统开发背景11.2 项目开发的环境11.2.1 硬件环境11.2.2 软件环境11.3 技术介绍及开发工具2 1.3.1 Eclipse21.3.2 Oracle10g2 1.3.3 tomcat2 1.4 任务概述3 第二章 系统需求分析42.1 系统实现的基本功能4 2.2 数据流图6 2.3 数据库设计82.3.1数据字典8 2.3.2数据库概念结构设计13 2.3.3数据库逻辑结构设计14 2.3.4数据库物理设计15 第三章 系统总体设计173.1 系统结构17 3.2 模块17 第四章 系统详细设计和实现204.1 人机界面设计204.1.1 人力资源管理系统登录首页20 4.1.2 人员调整214.1.3 系统管理23 4.1.4 统计查询244.2 技术介绍254.2.1 SSH2框架的整合264.2.2 POI324.2.3 JfreeChat与struts2整合344.2.4 AJAX技术35 4.2.5 JavaScipt技术374.2.6 Jquery技术38 4.2.7 J2EE384.2.8 增删改查的实现38第五章 测试415.1 测试目的415.2 测试目标415.2 测试用例41 结束语50 参考文献51致 谢52 附录 英文资料翻译53 IV第一章 系统概述1.1 系统开发背景人力资源是现代企业发展的重要资源之一,加强人力资源的管理对于提高企业的核心竞争力和促进企业的长远发展有着深刻的意义。传统的人员管理方法忽视了员工潜力的发掘和人才发展的长远大局,而且在使用上存在着保密性低、模式老化、查询不方便等弊病。这种人员管理模式不能适应现代企业的发展,而且直接限制了企业的做大做强以及与国际名企的接轨。随着先进的人力资源管理思想的引进和计算机技术在企业管理领域的应用日益广泛,利用计算机系统及数据库系统对企业的人力资源进行统一的管理与调配变得方便可行。通过计算机高效的计算、存储和数据变更同步性,现代企业的人事管理逐渐走向规范化和科学化。相比于传统的员工管理模式,借助于计算机平台的人力资源管理系统具有检索迅速、存储量大、可靠性高和成本低等优点。不同企业的管理侧重点各不相同,因此不同的企业就对人事管理系统有着不同的需求。针对不同企业的需求和管理重点,特别推出了此人力资源管理系统。1.2 项目开发的环境1.2.1 硬件环境联想四核处理器,2GB以上内存容量,750GGB以上硬盘容量。1.2.2 软件环境Microsoft Windows7操作系统,oracle10g数据库,Eclipse开发工具,服务器采用tomcat 6.0.32。1.3 技术介绍及开发工具本系统采用Java语言,基于J2EE企业级开发,采用HTML,JavaScript,css,Jquery技术得到页面,使用struts2框架实现与数据库的交互,数据库采用Oracle10g,选用 Hibernate框架实现访问数据库,并用Spring框架来管理整个开发过程。除此之外,本系统用JFreeChat技术绘制饼图,POI技术实现文件下载。1.3.1 EclipseEclipse,是一个十分优秀的用于开发Java, J2EE的Eclipse插件集合。利用它我们可以在数据库和JavaEE的开发,他有着功能丰富的JavaEE集成开发环境,包括了完备的编码、调试、测试和发布功能,完整支持HTML,Struts,JSP,CSS,Javascript,Spring,SQL,Hibernate。在本设计中用Eclipse作为开发工具的角色出现。1.3.2 Oracle10gOracle10g是业界第一个完整、简单的用于互联网的新一代智能化的、协作各种应用的软件基础架构。Oracle10g实际上是指 Oracle10g Database, Oracle10g Application Server 和Oracle10g Developer Suite的完整集成。在本设计中,Oracle10g是以数据库的形式出现的,连接Oracle10g是用第三方工具plsql来连接的,通过这个工具来建表,与表相关的序列。1.3.3 tomcatTomcat 是一个轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。当在一台机器上配置好Apache 服务器,可利用它响应对HTML 页面的访问请求。本设计中,Tomcat是作为服务器的角色出现的,利用Tomcat来响应HTML页面的请求。1.4 任务概述本设计借助人力资源管理系统帮助学生强化软件开发的流程和规范,需要实现的功能大致包括:1.完成对各种不同种类的人员(新员工、在职人员、停薪留职人员、挂靠人员)管理、人员调整;2.完成部门的添加功能和查看功能;3.实现对用户的管理(增加,查看);4.统计查询(职称,学历,状态),导出表;5.系统管理,实现新用户的添加;第二章 系统需求分析本系统运用Windows7作为操作平台,数据库采用oracle10g数据库,运用的软件开发平台为Eclipse,属于浏览器/服务器模式,数据库在浏览器上能运行,并提供数据库之间的数据复制功能,人员具备知识:java核心,数据库的基本操作,web网页的基本开发。从技术可行性的角度可以完成此设计。采用人力管理系统可取代原系统的单据手工传递工作,减少人工开支,节省资金,并且可大大提高信息量的取得,缩短信息处理周期。从经济可行的角度来说是合理的。确定软件产品是否能够被最终的用户所接受,用户是否能操作最终的产品:由于网站的操作是基于B/S结构,简单明了,用户只需相关电脑的基本知识,而管理员也无需具备专业知识,只需要对一些数据进行输入以及平时的日常维护就够了。所以,从可操作性上来看,也是合理的。2.1 系统实现的基本功能1.1)个人资料管理 :所有信息的脚本验证是必须的增加新员工:录入新员工基本信息,包括姓名,性别,出生日期(日历插件实现),民族,学历,部门,职务,职称,状态,身份证号码,社会保障号码,退休工资,退休时间(日历插件实现);其中部门、职称、职务、状态、学历、民族为下拉选择,其他手工填写;需要注意在此处应该提供添加部门、职称、职务、状态、学历、民族的入口对于必填项目要使用ajax效果给出提示职务包含:职员,经理,总监,总裁职称包含:初级软件工程师,助理工程师,软件工程师,高级软件工程师,会计师,高级管理工程师,高级政治工程师,特级软件工程师,民族:回、汉、满2)在职人员管理:查询:完成在职人员的查询,显示所有在职员工,在此处要提供按名字查询的功能,要求是模糊查询(要分页显示),用户点击该员工姓名,系统立刻显示该员工的所有详细信息。同时显示效果要求使用界面友好的ajax效果。3)离退人员管理:查询:完成离退人员的查询,显示所有离退员工,在此处要提供按名字查询的功能,要求是模糊查询(要分页显示),用户点击该员工姓名,系统立刻显示该员工的所有详细信息。同时显示效果要求使用界面友好的ajax效果。4)停薪留职人员管理:查询:完成停薪留职人员的查询,显示所有停薪留职员工,在此处要提供按名字查询的功能,要求是模糊查询(要分页显示),用户点击该员工姓名,系统立刻显示该员工的所有详细信息。同时显示效果要求使用界面友好的ajax效果。5)挂靠人员管理:查询:完成挂靠人员的查询,显示所有挂靠员工,在此处要提供按名字查询的功能,要求是模糊查询(要分页显示),用户点击该员工姓名,系统立刻显示该员工的所有详细信息。同时显示效果要求使用界面友好的ajax效果。2部门()管理:增加部门:录入部门的名称,电话查询部门:列出所有的部门3人员调整部门调整:某员工由A部门调到B部门,系统要提供该功能,在该模块内要根据员工名字查询,查询以后显示该员工原来所在部门,然后用户选择调整的目标部门,提交即可。用户可以在界面上通过鼠标点击可以完成员工状态的调整,注意在该模块里要提供按员工名字的模糊查询,用户先输入名字,然后在屏幕上看到该员工调整前的状态,用户选择目标状态即可。4. 用户管理增加系统用户,包括用户名和密码查看系统用户删除系统用户、修改用户信息5统计查询按职称,学历,状态做一个组合查询用POI实现文件下载用JfreeChat实现按职称,学历,状态,分别的到各自的饼图。2.2 数据流图根据需求,本人力资源管理系统的用户登录的基本过程为用户(一般操作员)登录,将用户所输入的信息与用户表中的信息做比较,如果该用户信息在用户表中,则登录成功,否则登录失败,用户登录的数据流图如图2.1所示。图2.1 用户登录的数据流图登录成功之后,就可以进行操个人管理,部门管理,人员调整,统计查询,系统管理基本操作。其操作的数据流图如图2.2所示。图2.2 操作员的数据流图人员调整包括部门调整和人员状态调整,部门调整是修改员工的部门,实现员工的部门调动,人员状态调整修改员工的状态,包括在职,离退休,停薪留职,挂靠。此处的用户只有一般操作员,其操作的数据流图如图2.4所示。图2.4 人员调整数据流图系统管理,包括对用户的查看,添加,修改,删除,其操作的数据流图如图2.5所示。图2.5用户管理数据流图统计查询,根据组合条件查询,按职称,学历,状态三个条件查出用户信息,并提供下载本页面的内容。此模块中提供职称分布,学历分布,状态分布的信息,如图2.6所示。图2.6 统计查询数据流图2.3 数据库设计2.3.1数据字典针对本人力资源管理系统,用户需要从数据库中获得用户、员工、部门的信息,包括基本信息以及对这些信息的操作和查询。根据需求,本人力资源管理系统的模块分为用户登录,个人管理,部门管理,人员调整,系统管理,统计查询。以下的数据字典包括这五个模块中的三个。1.数据流的数据字典人员调整,用户管理,统计查询中涉及到的数据流包括员工信息,部门信息,用户信息,用户id信息,下载查询信息,组合查询信息,职称查询信息,学历查询信息,状态查询信息,职称分布信息,学历分布信息,状态分布信息。数据流的数据字典如图2.7。名字:用户信息描述:用户基本信息定义:用户信息=id+用户名+密码+角色id=0数字999999用户名=0字符10密码=0字符10角色=0字符10位置:用户表名字:部门信息描述:部门的基本信息定义:部门信息=id+部门名称+电话id=0数字50000部门名称=0字符10电话=0字符10位置:部门表名字:用户id信息描述:用户id信息定义:用户id信息=idid=0数字999999位置:用户表名字:组合查询信息描述:组合查询信息定义:组合查询信息=学历+职称+状态学历=0字符10职称=0字符10状态=0字符10位置:员工表名字:职称查询信息描述:职称查询信息定义:职称查询信息=职称+人数职称=0字符10人数=0数字999位置:员工表名字:学历查询信息描述:学历查询信息定义:学历查询信息=学历+人数学历=0字符10人数=0数字999位置:员工表名字:状态查询信息描述:状态查询信息定义:状态查询信息=状态+人数状态=0字符10人数=0数字999位置:员工表名字:状态分布信息描述:状态分布信息定义:状态分布信息=状态+比例状态=0字符10比例=0数字1位置:员工表名字:职称分布信息描述:职称分布信息定义:职称分布信息=职称+比例职称=0字符10比例=0数字999位置:员工表名字:学历分布信息描述:学历分布信息定义:学历分布信息=学历+比例学历=0字符10比例=0数字999位置:员工表名字:员工信息描述:员工的基本信息定义:员工信息=id+姓名+性别+出生日期+民族+学历+部门+职务+职称+状态+身份证号码+社会保障号码+退休工资+退休时间id=0数字50000姓名=0字符10性别=0字符10出生日期=0字符10民族=0字符10学历=0字符10部门=0字符10职务=0字符10职称=0字符10状态=0字符10身份证号码=0字符18社会保障号码=0字符10退休工资=0字符10退休时间=0字符10位置:员工表名字:下载查询信息描述:下载查询信息定义:下载查询信息=id+姓名+性别+出生日期+民族+学历+部门+职务+职称+状态+身份证号码+社会保障号码+退休工资+退休时间id=0数字50000姓名=0字符10性别=0字符10出生日期=0字符10民族=0字符10学历=0字符10部门=0字符10职务=0字符10职称=0字符10状态=0字符10身份证号码=0字符18社会保障号码=0字符10退休工资=0字符10退休时间=0字符10位置:员工表图2.7 数据流的数据字典2.处理的数据字典人员调整,用户管理,统计查询中涉及到的处理如下:人员调整:部门调整,人员状态调整系统管理:登录,个人管理,部门管理,人员调整,统计查询,系统管理,查看用户,修改用户,删除用户,添加用户统计查询:下载查询,组合查询,职称查询,学历查询,状态查询处理的数据字典如图2.8。过程名:状态查询输入数据流:状态查询信息输出数据流:状态分布信息过程名:部门调整输入数据流:员工信息输出数据流:员工信息过程名:人员状态调整输入数据流:员工信息输出数据流:员工信息过程名:登录输入数据流:用户信息输出数据流:用户信息过程名:个人管理输入数据流:员工信息输出数据流:员工信息过程名:部门管理输入数据流:部门信息输出数据流:部门信息过程名:人员管理输入数据流:员工信息输出数据流:员工信息过程名:统计查询输入数据流:员工信息输出数据流:员工信息过程名:系统管理输入数据流:用户信息输出数据流:用户信息过程名:查看用户输入数据流:查询信息输出数据流:用户信息过程名:修改用户输入数据流:用户id信息输出数据流:用户信息过程名:删除用户输入数据流:用户id信息输出数据流:用户信息过程名:添加用户输入数据流:用户信息输出数据流:用户信息过程名:学历查询输入数据流:学历查询信息输出数据流:学历分布信息过程名:职称查询输入数据流:职称查询信息输出数据流:职称分布信息过程名:组合查询输入数据流:组合查询信息输出数据流:用户信息过程名:下载查询输入数据流:下载查询信息输出数据流:用户信息图2.8 处理的数据字典3.数据存储的数据字典人员调整,系统管理,统计查询中涉及到的存储包括用户表,员工表,部门表,其数据字典如图2.9。存储名:员工表描述:员工的基本信息定义:员工信息=id+姓名+性别+出生日期+民族+学历+部门+职务+职称+状态+身份证号码+社会保障号码+退休工资+退休时间id=0数字50000姓名=0字符10性别=0字符10出生日期=0字符10民族=0字符10学历=0字符10部门=0字符10职务=0字符10职称=0字符10状态=0字符10身份证号码=0字符18社会保障号码=0字符10退休工资=0字符10退休时间=0字符10存储名:部门表描述:部门的基本信息定义:部门信息=id+部门名称+电话id=0数字50000部门名称=0字符10电话=0字符10存储名:用户表描述:用户基本信息定义:用户信息=id+用户名+密码+角色id=0数字999999用户名=0字符10密码=0字符10角色=0字符10图2.9 数据存储的数据字典2.3.2数据库概念结构设计针对本人力资源管理系统,得到的总E-R图(见图2.10)和实体属性图(见图2.11,图2.12,2.13)。图2.10 总E-R图图2.11 员工实体-属性图图2.12 部门实体-属性图图2.13 用户实体-属性图2.3.3数据库逻辑结构设计把上述的e-r图模型转化成关系模型为:员工(id,姓名,性别,出生日期,民族,学历,部门,职务,职称,状态,身份证号码,社会保障号码,退休工资,退休时间);部门(id,部门名称,电话);用户(id,用户名,密码)。2.3.4数据库物理设计根据需求,本设计采用三张表三个序列来实现,包括用户表P_USER,见表2-1,员工表P_STAFF,见表2-2,部门表P_DEPT,这三张表中的id是用序列来实现的。其中P_USER表中的id使用的序列为SEQ_PUSER,最小值为1,最大值为999999。P_STAFF表中的id使用的序列为P_STAFF_ID,最小值为1,最大值为50000。P_DEPT表中的id使用的序列为P_DEPT_ID,最小值为1,最大值为50000。表2-1 用户表(P_USER)字段名描述数据类型数据长度NULLPrimarykeyU_IDIDINTEGERNYU_USERNAME用户名VARCHAR210YNU_PWD密码VARCHAR210YN表2-2 员工表(P_STAFF)字段名描述数据类型数据长度NULLPrimarykeyS_IDIDINTEGERNYS_NAME姓名VARCHAR210YNS_SEX性别VARCHAR210YNS_BIRTH出生日期VARCHAR210YNS_NATION民族VARCHAR210YNS_EDU学历VARCHAR210YNS_DEPT部门VARCHAR210YNS_JOB职务VARCHAR210YNS_PROFESSION职称VARCHAR210YNS_STATE状态VARCHAR210YNS_IDCARD身份证号VARCHAR210YNS_SOCIETYNO社会保障号VARCHAR210YNS_RETIRESALARY退休工资VARCHAR210YNS_RETIRETIME退休时间VARCHAR210YN表2-3 部门表(P_DEPT)字段名描述数据类型数据长度NULLPrimarykeyD_IDIDINTEGERNYD_NAME部门名称VARCHAR210YND_TEL电话VARCHAR210YN第三章 系统总体设计3.1 系统结构根据需求,本人力资源管理系统分为个人管理,部门管理,人员调整,系统管理,统计查询五个模块,如图3.1.图3.1 系统功能模块3.2 模块人力资源管理系统总共包括:个人管理,部门管理,人员调整,统计查询,系统管理五大模块。人员调整模块包括:部门调整,人员状态调整;模块图如图3.21.模糊查询:按姓名模糊查询所需要调整人的id,姓名,部门信息。2.调整部门:修改部门名称。3.人员状态调整:修改员工的状态,在职,离退休,停薪留职,挂靠。 添加用户模糊查询调整部门人员状态调整图3.2 人员调整模块图系统管理模块包括:用户登录、添加用户、修改用户信息,删除用户;模块图如图3.3。1.用户登录:实现管理人员登录。 2.添加用户:管理员添加新用户。3.修改用户信息:修改用户名,密码。4.删除用户:删除用户信息。 用户管理用户登录添加用户修改用户信息删除用户图3.3 用户管理模块图统计查询模块包括:下载查询、组合查询、学历查询、状态查询、职称查询;模块图如图3.4。1.下载查询:支持对当前页面表格以excel方式下载。 2.组合查询:按学历,职称,状态查询出人员信息。3.学历查询:得到所有员工中按学历分布的饼图。4.职称查询:得到所有员工中按职称分布的饼图。5.状态查询:得到所有员工中按状态分布的饼图。统计查询下载查询组合查询学历查询职称查询状态查询图3.4 统计查询模块图第四章 系统详细设计和实现4.1 人机界面设计人机界面接口是接口设计的一个重要的组成部分。对于交互式系统来说,人机界面设计和数据设计、体系结构设计及过程设计一样重要。4.1.1 人力资源管理系统登录首页此系统有用户登录的功能,也是一般操作员的登录,页面如图4.1,其对应的流程图如图4.2。图4.1 登录页面图4.2 系统登录流程图4.1.2 人员调整人员调整包括部门调整和人员状态调整。部门调整的列表页见图4.3,人员状态调整的列表也见图4.4,部门调整列表页如图4.5,人员状态调整页如图4.6,其流程图如图4.7.图4.3 部门调整列表页图4.4 人员状态调整列表页图4.5 部门调整页图4.6 员工状态调整页部门调整模糊查询部门调整人员状态调整输入姓名输入调整后的部门输入调整后的状态查询人员信息列表页人员信息列表人员信息列表修改修改YYYNNN开始结束图4.7 人员调整流程图4.1.3 系统管理系统管理包括增加用户,删除用户,查看用户信息,用户列表页如图4.8,修改页如图4.9,增加页如图4.10,删除页如图4.11,其流程图见图4.12.图4.8 用户管理列表页图4.9 修改用户修改页图4.10 增加用户页图4.11 删除用户页图4.12 用户管理流程图4.1.4 统计查询统计查询中一个重要的模块就是组合查询,其页面如图4.13,其流程图见图4.14.图4.13 统计查询页图4.14 统计查询流程图4.2 技术介绍本设计的亮点之一就是用传统的三大经典框架实现,SSH2是指Struts2,Spring,Hibernate三大框架来完成本设计的开发过程。为什么要用这三个框架来实现呢?Struts2的Taglib和页面导航。Taglib是Struts2的标签库,使用灵活,能大大提高开发效率;页面导航使系统的脉络更加清晰,通过一个配置文件,可把握整个系统各部分之间的联系,利于维护。Hibernate对JDBC的轻量级封装使得程序员可用面向对象的编程思维来操作数据库。Spring提供了管理业务对象的一致方法并且鼓励了注入对接口编程而不是对类编程的良好习惯。Spring的功能是一方面为Hibernate提供支持,另一方面通过管理service。4.2.1 SSH2框架的整合新建一个工程personnal,一个普通的Java工程,先让其变成一个Struts2工程,步骤为加载类库,需要的类库见图4.15。图4.15 Struts2需要的类库然后在web.xml文件中添加代码:struts2org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterstruts2/*然后再开发一个action开发的action需要继承ActionSupport,需要实现其中的execute方法,在此方法中实现相应的服务。然后把url和action,结果页面关联通过struts.xml,在struts.xml中配置package,实现相应的页面跳转。此时的工程已经成为一个Struts2工程了,接下来就该加Spring了。加Spring需要的包见图4.16图4.16 Spring需要的jar包配置数据源,用连接池(dbcp),需要的包见图4.17图4.17 连接池需要的包然后在applicationContext.xml文件中配置数据源,代码如下:配置文件中注入bean(java类)生成代理类:com.renshi.service.IService在此需要整合struts2和Spring需要的一个包如图4.18图4.18 Struts2和Spring整合需要的包同时在web.xml中配置:contextConfigLocationclasspath:applicationContext-*.xmlorg.springframework.web.context.ContextLoaderListener此时Struts2和Spring已经整合好了,下面就要让他成为一个Hibernate工程了。加Hibernate需要在com.renshi.bean下建UserBean.hbm.xml文件,是Hibernate的配置文件 seq_puser 此时需要将Spring和Hibernate整合org.hibernate.dialect.Oracle9Dialecttruecom/renshi/bean/UserBean.hbm.xmlPROPAGATION_REQUIREDPROPAGATION_REQUIREDPROPAGATION_REQUIREDPROPAGATION_REQUIREDPROPAGATION_REQUIRED,readOnly在此SSH2的框架已经搭建好了,为了使工程看着清晰,将业务,数据库连接,action分开得到的结构见图4.19.图4.19 SSH2整合好的结构此时启动服务器,会出现报错信息,原因是由于jar包冲突,此时只需删除asm.jar,asm-attrs.jar,cglib-2.1.3.jar.此时,一个完整的SSH2框架就搭建好了。4.2.2 POIPOI提供API给Java程序对Microsoft Office格式档案读和写的功能。在本设计中运用POI实现了对当前页面表格提供了一个excel下载,核心代码如下:public String execute() throws Exception if(page=0) page = 1;list = service.getStaff(page,state,profession,education);/ 创建工作簿HSSFWorkbook wb = new HSSFWorkbook();/ 创建工作表HSSFSheet sheet = wb.createSheet(sheet1);/ 创建一行HSSFRow row1 = sheet.createRow(0);/ 创建单元格并赋值row1.createCell(short)0).setCellValue(姓名);row1.createCell(short)1).setCellValue(性别);row1.createCell(short)2).setCellValue(出生日期);row1.createCell(short)3).setCellValue(民族);row1.createCell(short)4).setCellValue(学历);row1.createCell(short)5).setCellValue(部门);row1.createCell(short)6).setCellValue(职务);row1.createCell(short)7).setCellValue(职称);row1.createCell(short)8).setCellValue(状态);row1.createCell(short)9).setCellValue(身份证号码);row1.createCell(short)10).setCellValue(社会保障号码);row1.createCell(short)11).setCellValue(退休工资);row1.createCell(short)12).setCellValue(退休时间);/ 把查询数据写入excel中int i = 0;for(StaffBean bean:list) / 创建行HSSFRow row = sheet.createRow(i + 1);/ 创建单元格并赋值row.createCell(short)0).setCellValue(bean.getName();row.createCell(short)1).setCellValue(bean.getSex();row.createCell(short)2).setCellValue(bean.getBirth();row.createCell(short)3).setCellValue(bean.getNation();row.createCell(short)4).setCellValue(bean.getEducation();row.createCell(short)5).setCellValue(bean.getDept();row.createCell(short)6).setCellValue(bean.getJob();row.createCell(short)7).setCellValue(bean.getProfession();row.createCell(short)8).setCellValue(bean.getState();row.createCell(short)9).setCellValue(bean.getIdcard();row.createCell(short)10).setCellValue(bean.getSocietyno();row.createCell(short)11).setCellValue(bean.getRetiresalary();row.createCell(short)12).setCellValue(bean.getRetiretime();i+;String fileName =员工信息.xls;fileName = new String(fileName.getBytes(gb2312), iso8859-1);HttpServletResponse response = ServletActionContext.getResponse();response.setContentType(application/vnd.ms-Excel);response.setHeader(Content-disposition, attachment;filename=+ fileName);ServletOutputStream out = response.getOutputStream();wb.write(out);out.close();return NONE;4.2.3 JfreeChat与struts2整合在本设计中运用JfreeChat生成3D饼图,其整合步骤为将图4.20的包导入工程图4.20 JfreeChat需要的包并新建一个struts-jfreechart.xml文件,在其中配置: 600 450 在ProfStatAction中的核心代码为:public JFreeChart getChart() chart = ChartFactory.createPieChart3D(人员职称分布图,getDataSet(),true,false,false);chart.setTitle(new TextTitle(人员职称分布图);LegendTitle legend = chart.getLegend(0);legend.setItemFont(new Font(宋体,Font.BOLD,14);PiePlot plot = (PiePlot)chart.getPlot();plot.setLabelFont(new Font(隶书,Font.BOLD,18);plot.setBackgroundAlpha(0.9f);plot.setForegroundAlpha(0.5f);return chart;private DefaultPieDataset getDataSet() DefaultPieDataset dataset = new DefaultPieDataset();list = service.getStaffsByProfession();for(ProfBean bean:list) dataset.setValue(bean.getName(), bean.getCount();return dataset;4.2.4 AJAX技术在本设计中运用Ajax技术在添加新用户时提醒现在输入的用户名是否可用,在用户名的输入框失去焦点的时候出发一个checkUsername()函数,js代码如下:function checkUsername() var user = $(#username).val(); $.get(checkUserHave.action, name: user,temp:Math.random(), function(data) $(#userMessage).html(data); );将判断这一任务交给checkUserHave.action处理,即CheckUsernameAction(在配置文件中实现的),核心代码为:public String execute() throws Exception System.out.println(isHave:);HttpServletResponse response = ServletActionContext.getResponse();response.setContentType(text/html;charset=utf-8);Connection conn = null;PreparedStatement pstmt = null;ResultSet rs = null;boolean isHave = false;PrintWriter out = response.getWriter();/ 获得连接conn = DBUtil.getConnection();/ 创建pstmtString sql = select * from p_user where u_username=?;try pstmt = conn.prepareStatement(sql);/ 赋值pstmt.setString(1, name); catch (SQLException e) / TODO Auto-generated catch blocke.printStackTrace();try / 执行sqlrs = pstmt.executeQuery();/ 处理结果集isHave =rs.next(); catch (SQLException e) / TODO Auto-generated catch blocke.printStackTrace(); finally DBUtil.closeAll(rs,conn,pstmt);System.out.println(isHave:+isHave);if(isHave)out.print(该用户名已存在,请更换其他用户名);elseout.print(该用户名可用);return NONE;4.2.5 JavaScipt技术在本设计中运用JavaScipt技术进行是否为空判断,身份证是否为18位数字的判断,并且在本设计中用JS实现了一个日历的插件。非空判断代码如下:function doSubmit() var name = document.getElementById(username).value; if(name = ) alert(请输入用户名); document.getElementById(username).focus(); return false; document.getElementsByName(form1)0.submit(); 身份证号必须是18位的判断,代码如下:function doSubmit() var name = $.trim($(#name).val(); var idcard = $.trim($(#idcard).val(); if(name = ) alert(员工姓名不能为空);$(#name).focus();return; var pattern = 0-918$; if(!(idcard.match(pattern) alert(身份证必须为18位数字);$(#idcard).focus();return; $(#form1).submit(); 4.2.6 Jquery技术Jquery是JavaScipt的一个框架,对JavaScipt进行封装,使其使用步骤简单。4.2.7 J2EEJ2EE是Java2平台企业版(Java 2 Platform,Enterprise Edition)J2EE是一套全然不同于传统应用开发的技术架构,包含许多组件,主要可简化且规范应用系统的开发与部署,进而提高可移植性、安全与再用价值。4.2.8 增删改查的实现我们在做一个增删改查的时候,在SSH2框架下,基本可以按这个步骤来做先写bean,再写dao,service,action。在此,以用户管理为例。1.用户列表1)Bean:创建一个UserBean对应于数据库中的p_user表,在UserBean.hbm.xml文件中配置,内容如下: seq_puser 2)dao:UserDao,继承HibernateDaoSupport,用hql语句实现查询,代码如下:List list = (List)this.getHibernateTemplate().find(hql);返回查询好的list,在配置文件applicationContext-dao.xml中加入3)service:在IService中构造listDept(抽象方法),得到部门列表,在MyService中实现此方法,同时在此方法中注入UserDao的实例userDao,用userDao.getAllUser()得到用户列表信息,同时在配置文件applicationContext-service.xml中添加如下代码:4)action:在ListUserAction中注入IService接口的实例对象service,用service.listUser()得到用户信息的列表,同时在struts-user.xml中配置:listUser.jsp2.增加用户增加和列表开发的顺序是一样的,从bean,dao,service,action的开发顺序,在各个配置文件中配置的方式都是一样的,唯一不同的就是dao中的方法,UserDao中增加方法的代码为:/* * 增加用户 * param bean */public void addUser(UserBean bean) this.getHibernateTemplate().save(bean);3.修改用户修改和列表也是一样的,思路中不一样的地方在于,修改时将需要修改的那条用户信息的id传到后台,在用户表中查到这条数据,在修改页面显示出来,然后填入修改信息,将修改之后的信息添加到数据库中,UserDao中的修改方法为:/* * 修改用户信息,按照id找到该条数据 * param id * return */public UserBean getUserById(int id) UserBean bean = (UserBean)this.getHibernateTemplate().get(UserBean.class, id);return bean;/* * 修改用户信息 * param bean */public void updateUser(UserBean bean) this.getHibernateTemplate().update(bean);4.删除用户修改和列表也是一样的,思路中不一样的地方在于,修改时将需要修改的那条用户信息的id传到后台,在用户表中删除掉这条数据,UserDao中的删除方法为:/* * 删除用户信息 * param id */public void deleteUser(int id) UserBean bean = (UserBean)this.getHibernateTemplate().get(UserBean.class, id);this.getHibernateTemplate().delete(bean);第五章 测试5.1 测试目的软件测试就是通过一定的测试步骤与测试案例,验证软件功能、 性能等指标能否满足实际应用需求的测试工作。5.2 测试目标任何开发平台所开发的系统,测试的目标都是确保所开发软件的功能符合用户的要求。具体表现在以下几个方面:1 确保用户提出的需求能实现,人员调整,包括部门调整和人员信息调整;系统管理,包括添加用户,修改用户,删除用户以及用户登录;统计查询,按组合条件查询,excel下载,JframeChat实现的按条件查询的饼图。2 确保系统在要求的硬件和软件平台上工作正常。5.2 测试用例针对所涉及的模块设计测试用例,人员调整测试用例见表5-1,系统管理测试用例见表5-2,统计查询测试用例见表5-3。表5-1 人员调整测试用例测试场景测试项目预测结果(正常)测试结果人员管理 部门调整1正常情况下,用户登录后,点击人员调整,会显示出部门调整和人员状态调整,点击部门调整会显示员工id,姓名,部门,操作的列表页图5.1图5.22单击列表中的部门调整按钮,将进入部门调整页面图5.3人员状态调整1正常情况下,用户登录后,点击人员调整,会显示出部门调整和人员状态调整,点击人员状态调整会显示员工id,姓名,状态,操作的列表页图5.42单击列表中的人员状态调整按钮,将进入人员状态调整页面图5.5表5-2 用户管理测试用例测试场景测试项目预测结果(正常)测试结果用户管理用户登录1正常情况下,用户登录,输入正确的用户名,密码,将进入主页面图6.6列表页1正常情况下,用户登录后,点击系统管理下得查看用户,会显示员工id,用户名,密码,以及操作的列表页图5.72.单击列表中的修改按钮,将进入修改页面图5.83.单击删除用户,有是否确认删除的提醒图5.9添加页1正常情况下,用户进入添加页,会显示需要添加信息:用户名,密码图5.102单击提交按钮,如果没有输入用户名,提示“请输入用户名”图5.113. 单击提交按钮,如果信息填写都正确,并正确保存后,返回到列表页,保存失败将回到添加页。图5.12修改页1. 正常情况下,用户进入修改页,显示这条信息的原有内容图5.132单击提交按钮,如果没有输入用户名,提示“请输入用户名”图5.143. 单击提交按钮,如果信息填写都正确,并正确保存后,返回到列表页,保存失败将回到添加页。图5.15表5-3 统计查询测试用例测试场景测试项目预测结果(正常)测试结果统计查询组合查询1.选择学历,职称,状态,点击查询能得到相应的用户信息图5.16职称查询1.点击职称分布图按钮,得到按职称分布的饼图图5.17学历查询1.点击学历分布图按钮,得到按学历分布的饼图图5.18状态查询1.点击状态分布图按钮,得到按状态分布的饼图图5.19下载查询1.点击excel下载,可得到本页面的数据的excel文件图5.20图5.1 用户登录页面图5.2 部门调整列表页图5.3 部门调整修改页图5.4 人员状态调整列表页图5.5 员工状态调整修改页图5.6 用户登录主页面图5.7 用户信息列表页图5.8用户信息修改页图5.9 用户信息删除提示页图5.10 用户信息添加页图5.11 添加时用户名为空时提示消息页图5.12 添加成功后返回列表页图5.13 修改用户信息时显示原来信息页图5.14 修改时用户名为空时提示消息页图5.15 修改成功返回列表页图5.16 组合查询结果图5.17 职称分布图图5.18 学历分布图图5.19 状态分布图图5.20 显示excel下载页结束语从老师那里得到毕业设计的题目到做需求分析到代码的编写和实现,我对自己所做的人力资源管理系统一步步的有了更加清晰的认识。系统主要实现的功能是一些基本的增删改查和职称、学历、状态等的分布图。但是在实现其功能的过程中我还是遇到不少的困难,首先是界面的问题,开始的时候界面感觉不错,但随着功能模块的增加,需要有越来越多的页面,而且页面又需要不同的风格,这样就需要很多的时间来布置界面,实现功能的代码已初步完成,但是在页面的实现过程中遇到很多问题,总结起来就两点,一是经常出现的空指针异常,另一个是找不到目标文件的异常,通过向老师,同学请教和自己上网查询等方法之后,把这些错误也成功的解决。在系统的开发过程中,以前学习感到很抽象的课程,如软件工程、数据库原理、面向对象程序设等变得清晰起来。感觉到这几门理论课程的重要性。总体来说,这次的毕业设计对我大学四年的学业情况是一个比较全面性的总结,也是对我四年来所学知识的验证。让我更加系统的把所学的知识汇总起来,综合应用在以后的工作中。感谢老师们四年来对我的真诚培养,让我有更加雄厚的文化知识迎接未来的挑战。但是由于毕业设计时间较短,所以该系统可能还有许多不尽如人意的地方,这些都有待进一步改善。参考文献1 William Stallings.操作系统-精髓与设计原理:电子工业出版社,2009年2 萨师煊,王珊.数据库系统概论.北京:高等教育出版社,2000年3 王怀民.企业应用架构模式:机械工业出版社 ,2004 年 4 张海藩.软件工程导论:清华大学出版社,2008年5 李钟尉,马文强,陈丹丹.java从精通到入门:清华大学出版社,2010年6 孙卫琴.精通Hibernate:Java对象持久化技术详解,电子工业出 版社,2006年致 谢在毕业设计即将结束时,首先向我的导师王海荣老师致以最诚挚的谢意。感谢王老师对我的关心和孜孜不倦的教诲。同时还有邢老师,王丽霞老师,感谢他们在设计阶段给予了我非常全面的指导,感谢计算机学院教导过我的所有的老师,这份毕业的成果离不开她们四年的教导与关怀。在我的学习和课题完成期间,我还得到了计算机科学与技术学院其他老师的帮助,并在此致以真诚的感谢。感谢一起在计算机科学与技术专业同班同学的热情帮助和支持以及在我完成课题的过程中的帮助和指导。附录 英文资料翻译英文原文:The technique development history of JSPBrian Wright Michael FreedmanThe Java Server Pages( JSP) is a kind of according to web of the script plait distance technique, similar carries the script language of Java in the server of the Netscape company of server- side JavaScript( SSJS) and the Active Server Pages( ASP) of the Microsoft. JSP compares the SSJS and ASP to have better can expand sex, and it is no more exclusive than any factory or some one particular server of Web. Though the norm of JSP is to be draw up by the Sun company of, any factory can carry out the JSP on own system. The After Sun release the JSP( the Java Server Pages) formally, the this kind of new Web application development technique very quickly caused the peoples concern. JSP provided a special development environment for the Web application that establishes the high dynamic state. According to the Sun parlance, the JSP can adapt to include the Apache WebServer, IIS4.0 on the market at inside of 85% server product.This chapter will introduce the related knowledge of JSP and Databases, and JavaBean related contents, is all certainly rougher introduction among them basic contents, say perhaps to is a Guide only, if the reader needs the more detailed information, pleasing the book of consult the homologous JSP.A. GeneralizeThe JSP(Java Server Pages) is from the company of Sun Microsystems initiate, the many companies the participate to the build up the together of the a kind the of dynamic the state web the page technique standard, the it have the it in the construction the of the dynamic state the web page the strong but the do not the especially of the function. JSP and the technique of ASP of the Microsoft is very alike. Both all provide the ability that mixes with a certain procedure code and is explain by the language engine to carry out the procedure code in the code of HTML. Underneath we are simple of carry on the introduction to it.JSP pages are translated into servlets. So, fundamentally, any task JSP pages can perform could also be accomplished by servlets. However, this underlying equivalence does not mean that servlets and JSP pages are equally appropriate in all scenarios. The issue is not the power of the technology, it is the convenience, productivity, and maintainability of one or the other. After all, anything you can do on a particular computer platform in the Java programming language you could also do in assembly language. But it still matters which you choose.JSP provides the following benefits over servlets alone: It is easier to write and maintain the HTML. Your static code is ordinary HTML: no extra backslashes, no double quotes, and no lurking Java syntax. You can use standard Web-site development tools. Even HTML tools that know nothing about JSP can be used because they simply ignore the JSP tags. You can divide up your development team. The Java programmers can work on the dynamic code. The Web developers can concentrate on the presentation layer. On large projects, this division is very important. Depending on the size of your team and the complexity of your project, you can enforce a weaker or stronger separation between the static HTML and the dynamic content.Now, this discussion is not to say that you should stop using servlets and use only JSP instead. By no means. Almost all projects will use both. For some requests in your project, you will use servlets. For others, you will use JSP. For still others, you will combine them with the MVC architecture . You want the appropriate tool for the job, and servlets, by themselves, do not complete your toolkit.B. Source of JSPThe technique of JSP of the company of Sun, making the page of Web develop the personnel can use the HTML perhaps marking of XML to design to turn the end page with format. Use the perhaps small script future life of marking of JSP becomes the dynamic state on the page contents.( the contents changes according to the claim of)The Java Servlet is a technical foundation of JSP, and the large Web applies the development of the procedure to need the Java Servlet to match with with the JSP and then can complete, this name of Servlet comes from the Applet, the local translation method of now is a lot of, this book in order not to misconstruction, decide the direct adoption Servlet but dont do any translation, if reader would like to, can call it as small service procedure. The Servlet is similar to traditional CGI, ISAPI, NSAPI etc. Web procedure development the function of the tool in fact, at use the Java Servlet hereafter, the customer need not use again the lowly method of CGI of efficiency, also need not use only the ability come to born page of Web of dynamic state in the method of API that a certain fixed Web server terrace circulate. Many servers of Web all support the Servlet, even not support the Servlet server of Web directly and can also pass the additional applied server and the mold pieces to support the Servlet. Receive benefit in the characteristic of the Java cross-platform, the Servlet is also a terrace irrelevant, actually, as long as match the norm of Java Servlet, the Servlet is complete to have nothing to do with terrace and is to have nothing to do with server of Web. Because the Java Servlet is internal to provide the service by the line distance, need not start a progress to the each claimses, and make use of the multi-threading mechanism can at the same time for several claim service, therefore the efficiency of Java Servlet is very high.But the Java Servlet also is not to has no weakness, similar to traditional CGI, ISAPI, the NSAPI method, the Java Servlet is to make use of to output the HTML language sentence to carry out the dynamic state web page of, if develop the whole website with the Java Servlet, the integration process of the dynamic state part and the static state page is an evil-foreboding dream simply. For solving this kind of weakness of the Java Servlet, the SUN released the JSP.A number of years ago, Marty was invited to attend a small 20-person industry roundtable discussion on software technology. Sitting in the seat next to Marty was James Gosling, inventor of the Java programming language. Sitting several seats away was a high-level manager from a very large software company in Redmond, Washington. During the discussion, the moderator brought up the subject of Jini, which at that time was a new Java technology. The moderator asked the manager what he thought of it, and the manager responded that it was too early to tell, but that it seemed to be an excellent idea. He went on to say that they would keep an eye on it, and if it seemed to be catching on, they would follow his companys usual embrace and extend strategy. At this point, Gosling lightheartedly interjected You mean disgrace and distend. Now, the grievance that Gosling was airing was that he felt that this company would take technology from other companies and suborn it for their own purposes. But guess what? The shoe is on the other foot here. The Java community did not invent the idea of designing pages as a mixture of static HTML and dynamic code marked with special tags. For example, Cold Fusion did it years earlier. Even ASP (a product from the very software company of the aforementioned manager) popularized this approach before JSP came along and decided to jump on the bandwagon. In fact, JSP not only adopted the general idea, it even used many of the same special tags as ASP did.The JSP is an establishment at the model of Java servlets on of the expression layer technique, it makes the plait write the HTML to become more simple.Be like the SSJS, it also allows you carry the static state HTML contents and servers the script mix to put together the born dynamic state exportation. JSP the script language that the Java is the tacit approval, however, be like the ASP and can use other languages( such as JavaScript and VBScript), the norm of JSP also allows to use other languages.C. JSP characteristicsIs a service according to the script language in some one language of the statures system this kind of discuss, the JSP should be see make is a kind of script language. However, be a kind of script language, the JSP seemed to be too strong again, almost can use all Javas in the JSP.Be a kind of according to text originally of, take manifestation as the central development technique, the JSP provided all advantages of the Java Servlet, and, when combine with a JavaBeans together, providing a kind of make contents and manifestation that simple way that logic separate. Separate the contents and advantage of logical manifestations is, the personnel who renews the page external appearance need not know the code of Java, and renew the JavaBeans personnel also need not be design the web page of expert in hand, can use to take the page of JavaBeans JSP to define the template of Web, to build up a from have the alike external appearance of the website that page constitute. JavaBeans completes the data to provide, having no code of Java in the template thus, this means that these templates can be written the personnel by a HTML plait to support. Certainly, can also make use of the Java Servlet to control the logic of the website, adjust through the Java Servlet to use the way of the document of JSP to separate website of logic and contents.Generally speaking, in actual engine of JSP, the page of JSP is the edit and translate type while carry out, not explain the type of .Explain the dynamic state web page development tool of the type, such as ASP, PHP3 etc., because speed etc. reason, have already cant satisfy current the large electronic commerce needs appliedly, traditional development techniques are all at to edit and translate the executive way change, such as the ASP ASP+;PHP3 PHP4.In the JSP norm book, did not request the procedure in the JSP code part( be called the Scriptlet) and must write with the Java definitely. Actually, have some engines of JSP are adoptive other script languages such as the EMAC- Script, etc., but actually this a few script languages also are to set up on the Java, edit and translate for the Servlet to carry out of. Write according to the norm of JSP, have no Scriptlet of relation with Java also is can of, however, mainly lie in the ability and JavaBeans, the Enterprise JavaBeanses because of the JSP strong function to work together, so even is the Scriptlet part not to use the Java, edit and translate of performance code also should is related with Java.D. JSP mechanismTo comprehend the JSP how unite the technical advantage that above various speak of, come to carry out various result easily, the customer must understand the differentiation of the module develops for the web page of the center and the page develops for the web page of the center first. The SSJS and ASP are all in several year ago to release, the network of that time is still very young, no one knows to still have in addition to making all business, datas and the expression logic enter the original web page entirely heap what better solve the method. This kind of model that take page as the center studies and gets the very fast development easily. However, along with change of time, the people know that this kind of method is unwell in set up large, the Web that can upgrade applies the procedure. The expression logic write in the script environment was lock in the page, only passing to shear to slice and glue to stick then can drive heavy use. Express the logic to usually mix together with business and the data logics, when this makes be the procedure member to try to change an external appearance that applies the procedure but do not want to break with its llied business logic, apply the procedure of maintenance be like to walk the similar difficulty on the eggshell. In fact in the business enterprise, heavy use the application of the module already through very mature, no one would like to rewrite those logics for their applied procedure.HTML and sketch the designer handed over to the implement work of their design the Web plait the one who write, make they have to double work- Usually is the handicraft plait to write, because have no fit tool and can carry the script and the HTML contents knot to the server to put together. Chien but speech, apply the complexity of the procedure along with the Web to promote continuously, the development method that take page as the center limits sex to become to get up obviously. At the same time, the people always at look for the better method of build up the Web application procedure, the module spreads in customers machine/ server the realm. JavaBeans and ActiveX were published the company to expand to apply the procedure developer for Java and Windows to use to come to develop the complicated procedure quickly by the fast application procedure development( RAD) tool. These techniques make the expert in the some realm be able to write the module for the perpendicular application plait in the skill area, but the developer can go fetch the usage directly but need not control the expertise of this realm.Be a kind of take module as the central development terrace, the JSP appeared. It with the JavaBeans and Enterprise JavaBeans( EJB) module includes the model of the business and the data logic for foundation, provide a great deal of label and a script terraces to use to come to show in the HTML page from the contents of JavaBeans creation or send a present in return. Because of the property that regards the module as the center of the JSP, it can drive Java and not the developer of Java uses equally. Not the developer of Java can pass the JSP label( Tags) to use the JavaBeans that the deluxe developer of Java establish. The developer of Java not only can establish and use the JavaBeans, but also can use the language of Java to come to control more accurately in the JSP page according to the expression logic of the first floor JavaBeans. See now how JSP is handle claim of HTTP. In basic claim model, a claim directly was send to JSP page in. The code of JSP controls to carry on hour of the logic processing and module of JavaBeanses hand over with each other, and the manifestation result in dynamic state bornly, mixing with the HTML page of the static state HTML code. The Beans can be JavaBeans or module of EJBs. Moreover, the more complicated claim model can see make from is request other JSP pages of the page call sign or Java Servlets.The engine of JSP wants to chase the code of Java that the label of JSP, code of Java in the JSP page even all converts into the big piece together with the static state HTML contents actually. These codes piece was organized the Java Servlet that customer can not see to go to by the engine of JSP, then the Servlet edits and translate them automatically byte code of Java.Thus, the visitant that is the website requests a JSP page, under the condition of it is not knowing, an already born, the Servlet actual full general that prepared to edit and translate completes all works, very concealment but again and efficiently. The Servlet is to edit and translate of, so the code of JSP in the web page does not need when the every time requests that page is explain. The engine of JSP need to be edit and translate after Servlet the code end is modify only once, then this Servlet that editted and translate can be carry out. The in view of the fact JSP engine auto is born to edit and translate the Servlet also, need not procedure member begins to edit and translate the code, so the JSP can bring vivid sex that function and fast developments need that you are efficiently.Compared with the traditional CGI, the JSP has the equal advantage. First, on the speed, the traditional procedure of CGI needs to use the standard importation of the system to output the equipments to carry out the dynamic state web page born, but the JSP is direct is mutually the connection with server. And say for the CGI, each interview needs to add to add a progress to handle, the progress build up and destroy by burning constantly and will be a not small burden for calculator of be the server of Web. The next in order, the JSP is specialized to develop but design for the Web of, its purpose is for building up according to the Web applied procedure, included the norm and the tool of a the whole set. Use the technique of JSP can combine a lot of JSP pages to become a Web application procedure very expediently.中文译文:JSP技术发展史Brian Wright Michael FreedmanJava Server Pages(JSP)是一种基于web的脚本编程技术,类似于网景公司的服务器端Java脚本语言 server-side JavaScript(SSJS)和微软的Active Server Pages(ASP)。JSP比SSJS和ASP具有更好的可扩展性,并且它不专属于任何一家厂商或某一特定的Web服务器。尽管JSP规范是由Sun公司制定的,但任何厂商都可以在自己的系统上实现JSP。 在Sun正式发布JSP(Java Server Pages)之后,这种新的Web应用开发技术很快引起了人们的关注。JSP为创建高度动态的Web应用提供了一个独特的开发环境。按照Sun的说法,JSP能够适应市场上包括Apache WebServer、IIS4.0在内的85%的服务器产品。本文将介绍JSP相关的知识,以及JavaBean的相关内容,当然都是比较粗略的介绍其中的基本内容,或者说仅仅是一个Guide,如果读者需要更详细的信息,请参考相应的JSP的书籍。A. 概述JSP(Java Server Pages)是由Sun Microsystems公司倡导、许多公司参与一起建立的一种动态网页技术标准,其在动态网页的建设中有其强大而特别的功能。JSP与Microsoft的ASP技术非常相似。两者都提供在HTML代码中混合某种程序代码、由语言引擎解释执行程序代码的能力。下面我们简单的对它进行介绍。JSP页面最终会转换成servler。因而,从根本上,JSP页面能够执行的任何任务都可以用servler来完成。然而,这种底层的等同性并不意味着servler和JSP页面对于所有的情况都等同适用。问题不在于技术的能力,而是二者在便利性、生产率和可维护性上的不同。毕竟,在特定平台上能够用Java编程语言完成的事情,同样可以用汇编语言来完成,但是选择哪种语言依旧十分重要。和单独使用
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:人力资源管理系统
链接地址:https://www.renrendoc.com/p-31418151.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!