电子信息工程系 通信102201H马瑞峰 银行个人储蓄业务系统 论文.doc

银行个人储蓄业务系统设计

收藏

资源目录
跳过导航链接。
银行个人储蓄业务系统设计.rar
通信102201H马瑞峰
电子信息工程系 通信102201H马瑞峰 银行个人储蓄业务系统 论文.doc---(点击预览)
电子信息工程系 通信102201H 马瑞峰.ppt---(点击预览)
grcx
.myeclipse
.settings
.jsdtscope
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
src
com
WebRoot
admin
iframe
images
member
META-INF
UserFiles
WEB-INF
index.jsp
login.jsp
.classpath
.mymetadata
.project
grcx.sql
电子信息工程系 通信102201H马瑞峰 银行个人储蓄业务系统 论文~29526.tmp
压缩包内文档预览:(预览前20页/共57页)
预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图
编号:32842830    类型:共享资源    大小:22.90MB    格式:RAR    上传时间:2019-12-13 上传人:遗**** IP属地:湖北
30
积分
关 键 词:
银行 个人 储蓄 业务 系统 设计
资源描述:
银行个人储蓄业务系统设计,银行,个人,储蓄,业务,系统,设计
内容简介:
银行个人储蓄业务系统 院系 华科学院电子信息工程系班级 102201H学号 201022080123姓名 马瑞峰指导老师 田璟霞 目录 1 项目开发背景2 任务概述3 项目开发环境与技术4 系统设计5 系统功能模块6 页面展示7 功能展示8 总结9 致谢 项目开发背景 由于现在全国各大银行实现联网 存款 取款 转账等功能 在任何地方都可以实现 甚至在家里登录网上银行 还可以实现足不出户 了解自己帐户信息 给人们的生活提供便利 并且提高了社会经济效率 在这样的一个背景下 为了适应网络的普及以及当今社会发展的需要 本次我利用毕业之际 设计和模拟网上银行电子交易 为广大的客户提供查询余额 取款 转账等功能 任务概述 本设计需要实现的功能大致包括 1 完成对后台系统管理用户的管理 增加 删除 修改 查询 2 完成在后台对个人账户的管理 增加 删除 修改 查询 3 实现在后台对一般用户存款 取款 转账信息的管理 查看 以及打印 4 实现一般用户在前台对个人账户的安全管理 查看 修改 以及对账户申请销户挂失 5 实现一般用户在前台对个人账户的存款取款的信息管理 增加 查看 6 实现一般用户在前台对个人账户的转账信息管理 增加 查看 7 实现一般用户在前台对个人账户的账户详细信息进行查看 项目开发环境 硬件环境处理器 酷睿内存容量 8GB软件环境操作系统 MicrosoftWindows8 1数据库 MySQL开发工具 MyEclipse10服务器 Tomcat 项目开发技术 JSP技术JavaBean技术JDBC技术Servlet技术 系统设计 数据库设计ER图 管理员登陆 查询 1 N 增加查询 系统功能模块 系统首页 前台用户管理中心页面 账户安全管理存款信息管理取款信息管理转账信息管理账户信息查询退出登录状态 网站后台管理中心页面 系统用户管理个人账户管理存款信息管理取款信息管理转账信息管理退出登录 存款信息管理 用户登录页面 用户管理中心页面 存款信息管理页面 信息缺失报错页面 添加成功页面 在线打印页面 总结 本文通过本次系统设计与开发 从而得出下列结论 1 学习一门新技术 最重要的是实践 只有多动手才能尽快掌握它 2 一个系统的开发 经验是最重要的 经验不足 就难免会有许多考虑不周之处 3 要想吸引更多的用户 系统的界面必须要美观 有特色 友好 功能要健全 不过由于经验不足 我设计的图形界面比较简单 只是对基本功能进行了开发 我会在日后不断对此系统进行修正 完善其功能 致谢 在本次毕业论文过程中特别感谢田璟霞老师的悉心指导和大力支持 在总体结构 功能的把握上给予了非常大的帮助 感谢答辩的各位老师 我还要感谢我的母校 以及在大学四年生活中给予我关心和帮助的老师和同学 是他们教会了我专业的知识和做人的道理 通过这次毕业论文我还明白了作为一名通信工程专业的大学毕业生 我们要会的不仅仅是编写代码 更重要的是要有整体把握系统设计的能力 我会在以后的工作和学习中不断完善自己 为我最热爱的母校争光 为自己翻开辉煌的新篇章 谢谢 华科学院HUAKE INSTITUTE OF TAIYUAN UNIVERSITY OF SCIENCE & TECHNOLOGY 毕业设计(论文)题目:银行个人储蓄业务系统学 生 姓 名 马瑞峰 学 号 201022080123 班 级 通信102201H 所属院(系) 电子信息工程系 指 导 教 师 田璟霞 2014 年 6 月 1 日太原科技大学毕业设计(论文)任务书学院(直属系):电子信息工程系 时间: 2014年 3 月 4 日学 生 姓 名马瑞峰指 导 教 师田璟霞设计(论文)题目银行个人储蓄业务系统主要研究内容1.Java面向对象程序设计2.JavaEE企业开发方式以及相关技术研究方法按照软件开发CMM标准实施,具体包括,需求分析、体系结构设计、模块设计、数据库设计等相关设计。主要技术指标(或研究目标)JavaEE企业核心技术(servlet、jsp、jdbc、框架ssh、工作流引擎jbmp)主要参考文献(1)William Stallings.操作系统-精髓与设计原理:电子工业出版社,2009年(2) 萨师煊,王珊.数据库系统概论.北京:高等教育出版社,2000年(3) 王怀民.企业应用架构模式:机械工业出版社 ,2004 年 (4) 张海藩.软件工程导论:清华大学出版社,2008年(5) 李钟尉,马文强,陈丹丹.java从精通到入门:清华大学出版社,2010年银行个人储蓄业务系统的开发与实现摘要 随着计算机技术的不断发展,计算机作为知识经济时代的产物,已被广泛应用于社会各个行业和领域。目前我国国企改革的深入和社会主义市场经济的日趋繁荣,金融体系的规模更是日益庞大,客户对银行的服务要求也在不断提高,模拟一个快捷方便安全智能的网上银行转系统有很高的实用价值。由于现在各大银行的全国联网,异地存款,取款,存钱,在全国任何地方可以及时查询自己帐户等,甚至在家里,打开电脑,登录自己的网上银行,还可以实现足不出户,了解自己帐户信息,给人们的生活和社会的经济带来了空前的变化。在这样的一个背景下,为了适应网络的普及以及当今社会发展的需要,本次我利用毕业之际,设计和模拟网上银行,以备以后作技术上的参考。出于系统的安全性等因素的考虑,一个系统设计之前,需要进行方案和技术论证。所以不是一朝一夕能解决的。所以本次设计的系统主要是模拟中国农业银行的网上银行电子交易,为广大的客户提供查询余额、取款、转账等功能。 我利用自己所学的计算机专业知识,模拟设计一个类似与农业银行的银行个人储蓄业务系统,使自己进一步掌握运用JSP语言编程的能力,并更深一步的了解有关网上银行电子交易的相关知识。关键词:计算机技术;储蓄业务;JSPDevelopment and Implementation of OA management systemAbstractAlong with computer technologys unceasing development, the computer takes the era of knowledge economy the product, has been widely applied in social each profession and the domain. At present Our country state enterprise reform thorough and socialist market economys day-by-day prosperous, financial systems scale is day by day huge, the customer unceasingly is also enhancing to the bank service request, simulates one to facilitate the security intelligence on-line bank to transfer the system quickly to have the very high use value. as a result of the present each big banks national networking, the different deposit, draws money, saves money, may inquire oneself account promptly in national any place and so on, even at home, turns on the computer, registers own on-line bank, but may also realize is confined at home, understood that oneself account information, has brought the unprecedented change for peoples life and societys economy. Under a such background, to adapt the network popularization as well as now the social development need, this I use when the graduation, the design and the simulation on-line bank, will prepare later make in technical the reference. Stemming from systems factor and so on security considerations, before a system design, needs to carry on the plan and the technical proof. Therefore is not the one day and one night can solve. Therefore this designs system mainly simulates Agriculture Bank of Chinas on-line bank electron transaction, provides the inquiry remaining sum for the general customers, to draw money, functions and so on account transfer. I use the computer specialized knowledge which one study, the simulation design one to be similar with Agricultural banks on-line banking system, causes itself to further grasp utilizes the JSP language programming ability, and deeper step understanding related on-line bank electron transaction related knowledge. Key words: Computer technology; On-line bank; JSP太原科技大学华科学院毕业设计(论文)I目 录摘要I关键词:计算机技术;储蓄业务;JSPIAbstractIIKey words: Computer technology; On-line bank; JSPII第一章 系统概述- 1 -1.1 系统开发背景- 1 -1.2 项目开发的环境- 1 -1.2.1 硬件环境- 1 -1.2.2 软件环境- 2 -1.3 技术介绍及开发工具- 2 -1.3.1 MyEclipse- 2 -1.3.2 MySQL- 2 -1.3.3 Tomcat- 2 -1.4 任务概述- 3 -第二章 系统需求分析- 4 -2.1 系统实现的基本功能- 4 -2.2 数据库设计- 6 -2.2.1数据库概念结构设计- 6 -2.2.2数据库逻辑结构设计- 6 -第三章 系统总体设计- 11 -3.1 系统结构- 11 -3.2 模块- 11 -第四章 系统详细设计和实现- 13 -4.1 人机界面设计- 13 -4.1.1 银行个人储蓄业务系统登录首页- 13 -4.1.2 后台系统用户管理- 15 -4.1.3 后台个人账户管理- 16 -4.1.4 后台存款账户管理、取款账户管理和转账信息管理- 17 -4.1.5 前台账户安全管理- 19 -4.1.6 前台存取款信息管理- 20 -4.1.7 前台转账信息管理- 22 -4.1.8 前台账户信息查询- 24 -4.2 技术介绍- 24 -4.2.1 JSP技术- 24 -4.2.2 JavaBean技术- 25 -4.2.3 JDBC技术- 26 -4.2.4 用JDBC访问数据库- 27 -4.2.5 JavaEE- 29 -第五章 测试- 30 -5.1 测试目的- 30 -5.2 测试目标- 30 -5.3 测试用例- 30 -结束语- 41 -参考文献- 42 -致 谢- 43 -附录 英文资料翻译- 44 -第一章 系统概述1.1 系统开发背景随着计算机技术的不断发展,计算机作为知识经济时代的产物,已被广泛应用于社会各个行业和领域。目前我国国企改革的深入和社会主义市场经济的日趋繁荣,金融体系的规模更是日益庞大,客户对银行的服务要求也在不断提高,模拟一个快捷方便安全智能的网上银行转系统有很高的实用价值。本系统模拟银行帐户的管理,开发一个农行网上银行系统,设计主要实现用户在银行正常交易的一些功能而且作为一个实用的管理系统,要有良好的容错性,在出现误操作能尽量地给出警告,以便用户及时地更正,计算机地资源是受到限制的,因此要充分利用JSP的功能,设计出功能强大的软件,同时要尽可能的减少对系统的资源的占用,签于本系统的特殊性,还需要本程序有良好的保密性。由于现在各大银行的全国联网,异地存款,取款,存钱,在全国任何地方可以及时查询自己帐户等,甚至在家里,打开电脑,登录自己的网上银行,还可以实现足不出户,了解自己帐户信息,给人们的生活和社会的经济带来了空前的变化。在这样的一个背景下,为了适应网络的普及以及当今社会发展的需要,本次我利用毕业之际,设计和模拟网上银行,以备以后作技术上的参考。出于系统的安全性等因素的考虑,一个系统设计之前,需要进行方案和技术论证。所以不是一朝一夕能解决的。所以本次设计的系统主要是模拟中国农业银行的网上银行电子交易,为广大的客户提供查询余额、取款、转账等功能。 我利用自己所学的计算机专业知识,模拟设计一个类似与农业银行的网上银行系统,使自己进一步掌握运用JSP语言编程的能力,并更深一步的了解有关网上银行电子交易的相关知识。1.2 项目开发的环境1.2.1 硬件环境酷睿处理器,2GB以上内存容量。1.2.2 软件环境Microsoft Windows8.1操作系统,MySQL数据库,MyEclipse10开发工具,服务器采用MyEclipse Tomcat。1.3 技术介绍及开发工具本系统采用Java语言,基于JavaEE企业级开发,前台采用用HTML,JavaScript,CSS,JQuery技术得到页面,后台用JQuery框架实现与数据库的交互,数据库采用MySQL,选用 Hibernate框架实现访问数据库,并用Spring框架来管理整个开发过程。1.3.1 MyEclipseMyEclipse,是一个十分优秀的用于开发Java, JavaEE的Eclipse插件集合。利用它我们可以在数据库和JavaEE的开发,他有着功能丰富的JavaEE集成开发环境,包括了完备的编码、调试、测试和发布功能,完整支持HTML,Struts,JSP,CSS,JavaScript,Spring,SQL,Hibernate。在本设计中用MyEclipse作为开发工具的角色出现。1.3.2 MySQL MySQL是一个开放源码的小型关联式数据库管理系统,开发者为瑞典MySQL AB公司。MySQL被广泛地应用在Internet上的中小型网站中。由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,许多中小型网站为了降低网站总体拥有成本而选择了MySQL作为网站数据库。1.3.3 TomcatTomcat 是一个轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。当在一台机器上配置好Apache 服务器,可利用它响应对HTML 页面的访问请求。本设计中,Tomcat是作为服务器的角色出现的,利用Tomcat来响应HTML页面的请求。1.4 任务概述本设计需要实现的功能大致包括。1.完成对后台系统管理用户的管理(增加,删除,修改,查询)。2.完成在后台对个人账户的管理(增加,删除,修改,查询)。3.实现在后台对一般用户存款、取款、转账信息的管理(查看)以及打印。4.实现一般用户在前台对个人账户的安全管理(查看,修改)以及对账户申请销户挂失。5.实现一般用户在前台对个人账户的存款取款的信息管理(增加,查看)。6.实现一般用户在前台对个人账户的转账信息管理(增加,查看)。7.实现一般用户在前台对个人账户的账户详细信息进行查看。第二章 系统需求分析本系统运用Windows8.1作为操作平台,数据库采用MySQL数据库,运用的软件开发平台为MyEclipse,属于浏览器/服务器模式,数据库在浏览器上能运行,并提供数据库之间的数据复制功能,人员具备知识:Java核心,数据库的基本操作,Web网页的基本开发。从技术可行性的角度可以完成此设计。本系统需要具有以下功能:(1)由于一项新的软件在被使用之前,对于使用者来说是陌生和崭新的,所以要求系统具有良好的人机界面。(2)能够实现转账功能,能成功的对各种信息进行查询及管理。(3)查询数据方便,数据的稳定性和可靠性好。系统采用B/S模式。整个系统最关键的就是数据库系统,一个强大的数据库可以支持完善一个优秀的软件设计,通过软件系统与数据库系统的连接来实现通过软件界面观察和处理操作数据。2.1 系统实现的基本功能后台管理系统可以对后台进行以下功能:(1)系统用户管理 :增加:增加管理员后台管理系统的登陆账号与密码。修改:修改管理员登陆账号与密码。查询:系统用户管理页面首页展示管理员用户的序号、管理员名、创建时间、登陆次数。删除:系统用户在管理员页面对管理账户进行删除。 (2)个人账户管理:增加个人账户:录入银行卡号、用户姓名、用户性别、身份证号、联系方式、家庭住址、初始密码、存款金额。删除个人账户:在个人用户管理界面找到需要删除的个人用户,点击删除即可。修改个人账户:在个人用户管理界面可对个人用户信息进行修改,并对个人用户的销户,审核、销户、挂失进行修改。查询个人账户:在个人用户管理界面可对个人用户的ID、银行卡号、用户姓名、性别、身份证号、联系方式、家庭住址、办理时间、账户信息进行查询。(3)后台管理对存款、取款、转账信息管理:后台管理只可以对用户的存款、取款、转账信息进行查看和打印,不可对个人账户的存取款及转账进行增加、修改和删除。前台用户登陆可以对前台用户进行一下功能:(4)账户安全管理:修改登陆密码,申请销户挂失。(5) 存取款信息管理: 对个人账户的存取款信息进行增删改查(6) 转账信息管理:增加转账信息:需要输入对方账号和转账金额后提交进行转账。转账信息管理:可以对转账信息ID、对方账号、转账金额、账号、时间进行查看,也可对其进行修改与删除。(7) 转账收入信息:可以对转账收入中ID、账号、转账金额、时间、对方账号进行查看和打印。(8) 账户信息查询:可以对自己账户中的账户存款总计、账号转账收入总计、账户取款总计、账号支出总计、账号余额进行查看与打印。2.2 数据库设计2.2.1数据库概念结构设计针对本人银行个人储蓄业务系统,得到账户实体E-R图(见图2.1)和操作员实体E-R图(见图2.2)。帐户实体帐号卡号密码开户时间图2.1 账户实体E-R图操作员实体用户编号密码性别联系电话图2.2 操作员实体E-R图2.2.2数据库逻辑结构设计把上述的E-R图模型转化成关系模型为:用户(银行卡号,密码,用户姓名,用户性别,身份证号,联系方式,家庭住址,办理时间,账户信息);管理员(管理员名,登陆密码,创建时间)。根据需求,本设计采用七张表七个序列来实现,包括管理员表ADMIN,见表2.1;超级管理员表SYSTEM,见表2.2;管理员登录信息表ADMINLOG,见表2.3;存款信息表CK,见表2.4;个人登录信息表GR,见表2.5;取款信息表QK,见表2.6;转账信息表ZZ,见表2.7;这七张表中的id是用序列来实现的。表2.1 管理员表(ADMIN) 列名数据类型长度允许空IdInt4否UsernameVarchar50否PasswordVarchar50否CreattimeDatetime否FlagInt4否IsuseInt 4否LogintimesDatetime 否QuanxianVarchar1000否表2.2 超级管理员表(SYSTEM)列名数据类型长度允许空IdInt4否SitenameVarchar100否urlVarchar100否KeywordVarchar500否DescriptionVarchar500否EmailVarchar100否StateVarchar50否ReasonsVarchar100否DirVarchar100否RecordVarchar50否CopyrightText16否UpInt4否表2.3 管理员登录信息表(ADMINLOG)列名数据类型长度允许空IdInt4否UsernameVarchar50否PasswordVarchar50否LogtimeDatetime否LogipVarchar50否UserosVarchar50否OkVarchar50否表2.4 存款信息表(CK)列名数据类型长度允许空IdInt4否XmVarchar50否ZzVarchar50否LxVarchar50否JeFloat否MemberVarchar50否SjVarchar50否表2.5 个人登录信息表(GR)列名数据类型长度允许空IdInt4否XhVarchar50否XmVarchar50否XbVarchar50否SfzVarchar50否YxVarchar50否NjVarchar50否DerVarchar50否ZtVarchar50否SjVarchar50否XhsqVarchar50否GssqVarchar50否JeFloat否表2.6 取款信息表(QK)列名数据类型长度允许空IdInt4否XmVarchar50否ZzVarchar50否LxVarchar50否JeFloat否MemberVarchar50否SjVarchar50否表2.7 转账信息表(ZZ)列名数据类型长度允许空IdInt4否ZhVarchar50否JeFloat否MemberVarchar50否SjVarchar50否第三章 系统总体设计3.1 系统结构根据需求,本人银行个人储蓄业务系统分为管理员管理,用户管理两个模块,如图3.1.银行个人储蓄业务系统管理员用户个人账户管理系统用户管理存取款账户查询转账账户查询账户安全管理账户信息查询存取款转账信息管理图3.1 系统功能模块3.2 模块以下列出上述两个模块。管理员管理模块包括:系统用户管理、个人账户管理、存取款账户查询、转账个人账户查询;模块图如图3.21.系统用户管理:对管理员账户进行增加,删除,查询以及对管理员密码进行修改。2.个人账户管理:对个人账户的增删改查功能。3.存取款账户查询:对个人账户存取款进行查看与打印。4.转账账户查询:对个人账户转账进行查看与打印。管理员管理系统用户管理个人账户管理存取款账户查询转账账户查询图3.2 管理员管理模块图用户管理模块包括:账户安全管理、存取款转账信息管理、账户信息查询;模块图如图3.3。1.账户安全管理:对此账户修改登陆密码和对账户的销户挂失操作。 2.存取款转账信息管理:对存取款以及转账信息的增删改查。3.账户信息查询:对个人账户的账户存款总计、账号转账收入总计、账户取款总计、账户转账支出总计、账号余额进行查看与打印 。管理员管理账户安全管理存取款转账信息管理账户信息查询图3.3 用户管理模块图第四章 系统详细设计和实现4.1 人机界面设计人机界面接口是接口设计的一个重要的组成部分。对于交互式系统来说,人机界面设计和数据设计、体系结构设计及过程设计一样重要。4.1.1 银行个人储蓄业务系统登录首页此系统有用户登录的功能,在此也中选择是管理员还是一般用户的登录,页面如图4.1,图4.2,图4.3;其对应的流程图如图4.4。图4.1 首页页面图4.2 后台系统用户管理登陆页面图4.3 前台用户登录页面图4.4 系统登录流程图4.1.2 后台系统用户管理后台管理员界面包括系统用户管理、修改登录密码。系统用户管理页见图4.5,系统用户修改登录密码页见图4.6。图4.5 系统用户管理页图4.6 系统用户修改登陆密码页4.1.3 后台个人账户管理后台个人账户管理包括个人账户管理,增加个人账户,查询个人账户,个人账户管理页如图4.7,增加个人账户页如图4.8,查询个人账户页如图4.9。图4.7 个人账户管理页图4.8 增加个人账户页图4.9 查询个人账户面4.1.4 后台存款账户管理、取款账户管理和转账信息管理存取款账户管理以及转账信息管理包括存款信息管理,取款信息管理,转账信息管理三部分。存款信息管理页如图4.10,取款信息管理页如图4.11,转账信息管理页如图4.12。图4.10 存款信息管理页面图4.11 取款信息管理页面图4.12 转账信息管理页面4.1.5 前台账户安全管理前台账户安全管理包括修改登陆密码,申请销户、挂失两部分。修改登录密码页如图4.13,申请销户、挂失页如图4.14。图4.13 修改登录密码页图4.14 申请销户挂失页面4.1.6 前台存取款信息管理存取款信息管理包括存款信息管理,增加存款信息,取款信息管理,增加取款信息四部分。存款信息管理页如图4.15,增加存款信息页如图4.16,取款信息管理页如图4.17,增加取款信息管理如图4.18。图4.15 存款信息管理页面图4.16 增加存款信息页面图4.17 取款信息管理页面图4.18 增加取款信息页面4.1.7 前台转账信息管理前台转账信息管理包括转账信息管理,增加转账信息,转账收入信息三部分。转账信息管理页如图4.18,增加转账信息页如图4.19,转账收入信息如图4.20。图4.18 转账信息管理页面图4.19 增加转账信息页面图4.19 转账收入信息页面4.1.8 前台账户信息查询前台账户信息查询只有账户信息查询页面。账户信息查询页如图4.19。图4.19 转账收入信息页面4.2 技术介绍4.2.1 JSP技术JSP是由Sun微系统公司于1999年6月推出的一项技术,是基于JavaServlet以及整个Java体系的Web开发技术,利用这一技术可以建立先进、安全和跨平台的动态网站。JSP技术在多个方面加速了动态Web页面的开发。与微软公司的ASP技术相比,JSP具有如下优点:(1) 开放的技术:JSP技术基于平台和服务器的相互独立,技术支持来自广泛的、专门的、各种工具包,有服务器的组件和数据库产品开发商提供。相比之下,ASP技术主要依赖MICROSOFT支持。(2) 平台和服务器的独立性:JSP编写的代码可运行在任何符合JAVA语法结构的环境中。这样JSP就能够运行在多种WEB服务器上并支持来自多家开发商提供的各种工具包。(3) 开放的开发过程,开放的源码:自1995年以来,SUN用开放过程方法同国际JAVA组织合作开发和修改JAVA技术和规范。(4) JSP标记可扩充性:JSP技术能够为开发者扩展JSP标记,充分利用与XML兼容的标记技术强大的功能,大大减少对脚本语言的依赖。(5)JSP跨平台的可重用性:JSP组件(EJB,JavaBean或定制的JSP标记)都是跨平台可重用的。4.2.2 JavaBean技术JSP作为一个很好的动态网站开发语言得到了越来越广泛的应用,在各类JSP应用程序中,JSP + JavaBean的组合成为了一种事实上最常见的JSP程序的标准. JavaBean是描述Java的软件组件模型,有点类似于Microsoft的COM组件概念。在Java模型中,通过JavaBean可以无限扩充Java程序的功能,通过JavaBean的组合可以快速的生成新的应用程序。对于程序员来说,最好的一点就是JavaBean可以实现代码的重复利用,另外对于程序的易维护性等等也有很重大的意义。JavaBean通过Java虚拟机(Java Virtual Machine)可以得到正确的执行,具有平台无关性。一个JavaBean有三个部分组成:(1)属性(Property)Bean的属性就是对象的属性,但提供了属性读取和设置的接口支持。例如一个时钟Bean可以有时区和镇铃属性,日历Bean可以有年份和月份属性。每个属性通常遵守简单的方法命名规则。这样可以很方便的找出Bean提供的属性,然后查询属性值或改变属性值,对Bean进行操作。(2)方法(Method)由于Bean本身是Java对象,调用这个对象的方法是与其交互作用的唯一途径。JavaBean严格遵守面向对象的类设计逻辑,不让外界访问其任何实例字段(没有Public字段)。这样,方法调用的是接触Bean的唯一途径。(3)事件(Event)Bean与其他软件组件交流信息的主要方式是发送和接收事件。这与对象之间通过消息通信类似。JavaBean传统的应用在于可视化的领域,如AWT下的应用。自从JSP诞生后,JavaBean更多的应用在非可视化领域,在服务器端应用方面表现出来了越来越强的生命力。利用非可视化JavaBean, 来封装事务逻辑、数据库操作等等,可以很好地实现业务逻辑和前台程序(如JSP)的分离,使得系统具有更好的健壮性和灵活性。4.2.3 JDBC技术JDBC是Java的开发者Sun的JavaSoft公司制定的Java数据库连接JavaDataBaseConnectivity技术的简称,是为各种常用数据库提供无缝联接的技术。JDBC在Web和Internet应用程序中的作用和ODBC在Windows系列平台应用程序中的作用类似。JDBC有一个非常独特的动态连接结构,它使得系统模块化。使用JDBC来完成对数据库的访问包括以下四个主要组件:Java的应用程序、JDBC驱动器管理器、驱动器和数据源。简单地说,JDBC能完成下列三件事: (1)同一个数据库建立连接; (2)向数据库发送SQL语句; (3)处理数据库返回的结果。JDBC是一种可用于执行SQL语句的JavaAPI(ApplicationProgrammingInterface,应用程序设计接口)。它由一些Java语言写的类、界面组成。JDBC给数据库应用开发人员、数据库前台工具开发人员提供了一种标准的应用程序设计接口,使开发人员可以用纯Java语言编写完整的数据库应用程序。 通过使用JDBC,开发人员可以很方便地将SQL语句传送给几乎任何一种数据库。也就是说,开发人员可以不必写一个程序访问Sybase,写另一个程序访问Oracle,再写一个程序访问Microsoft的SQLServer。用JDBC写的程序能够自动地将SQL语句传送给相应的数据库管理系统(DBMS)。不但如此,使用Java编写的应用程序可以在任何支持Java的平台上运行,不必在不同的平台上编写不同的应用。Java和JDBC的结合可以让开发人员在开发数据库应用时真正实现“WriteOnce,RunEverywhere!” Java具有健壮、安全、易用等特性,而且支持自动网上下载,是一种很好的与数据库线连接而使用的编程语言。它所需要的是Java应用如何同各种各样的数据库连接,JDBC正是实现这种连接的关键。 JDBC扩展了Java的能力,如使用Java和JDBCAPI就可以公布一个Web页,页中带有能访问远端数据库的Applet。或者企业可以通过JDBC让全部的职工(他们可以使用不同的操作系统,如Windwos,Machintosh或UNIX)在Intranet上连接到几个全球数据库上,而这几个全球数据库可以是不相同的。4.2.4 用JDBC访问数据库所有的数据库的对象和方法都在java.sql.* 里面,所以首先要import java.sql.*,要想连接数据库,首先要将驱动程序调入。Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);这是JDBC-ODBC 的驱动程序。 要想连接一个指定的数据库,必须创建Connection类的一个实例。 String url = jdbc:odbc:Grocery prices; Connection con = DriverManager.getConnection(url); 注意在此用到的数据库名称是在ODBC设置控制面板中输入的数据资源名。URL语法对于不同类型的数据库会很不一样。 语法是这样的: jdbc:subprotocol:subname 开头都是JDBC,后面是子协议,然后是ODBC名称。 若要使用纯JDBC驱动程序,必须安装第三方软件提供的驱动程序,一般在数据库的官方网站上可以找到这里不做讨论。本系统采用JDBC-ODBC的驱动程序连接数据库,并使用JavaBean组件,有效的避免了代码的重复,具体过程如下:package exam; import java.sql.*; public class ExamBean String strDBDriver=sun.jdbc.odbc.JdbcOdbcDriver;/JDBC-ODBC驱动程序 String strDBUrl=jdbc:odbc:exam; private Connection conn=null; private Statement stmt=null; ResultSet rs=null;/ public ExamBean() try Class.forName(strDBDriver); /catch(java.lang.ClassNotFoundException e) System.err.println(exam():+e.getMessage(); /public ResultSet executeQuery(String sql) rs=null; try conn=DriverManager.getConnection(strDBDriver);/创建数据库连接对象 stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);/支持数据回滚 rs=stmt.executeQuery(sql); catch(SQLException ex) System.err.println(aq.executeQuery:+ex.getMessage(); return rs; / public void executeUpdate(String sql) stmt=null; try conn=DriverManager.getConnection(strDBDriver); stmt=conn.createStatement(); stmt.executeUpdate(sql); stmt.close(); catch(SQLException ex) System.err.println(aq.executeQuery:+ex.getMessage(); / public void closeStmt() try stmt.close(); catch(SQLException e) e.printStackTrace(); public void closeConn() try conn.close(); catch(SQLException e) e.printStackTrace(); 4.2.5 JavaEEJavaEE是Java2平台企业版(Java 2 Platform,Enterprise Edition)JavaEE是一套全然不同于传统应用开发的技术架构,包含许多组件,主要可简化且规范应用系统的开发与部署,进而提高可移植性、安全与再用价值。第五章 测试5.1 测试目的软件测试就是用来测试软件的功能和性能是否能够达到用户的需求,测试的目的是确保软件完成既定功能。 5.2 测试目标任何开发平台所开发的系统,测试的目标都是确保所开发软件的功能符合用户的要求。具体表现在以下几个方面:1 确保用户提出的需求能实现,系统用户管理,包括增加管理员和删除管理员;用户存款信息管理,包括增加存款。2 确保系统在要求的硬件和软件平台上工作正常。5.3 测试用例针对我做的模块设计测试用例,系统用户管理测试用例见表5.1,用户存款信息测试用例见表5.2。表5.1 系统用户管理测试用例测试场景测试项目预测结果(正常)测试结果系统用户管理用户登录1正常情况下,管理员登录,输入正确的用户名,密码将进入后台管理中心页面。图5.1图5.2列表页1正常情况下,管理员登录后,点击系统用户管理,会显示下拉列表,包含系统用户管理与修改登录密码两个表单。图5.32.单击系统用户管理菜单,会显示系统用户的管理员名、创建时间、登陆次数,并可对其执行删除操作,以及增加、修改管理员功能图5.4删除管理员1.正常情况下,单击删除按钮,会显示“删除成功”,单击确定会跳转回系统用户管理页面。看到元系统管理员“www”已被删除。图5.5图5.6增加管理员1.在增加、修改管理员栏中填写管理员名及用户密码2.如果管理员名不填写,单击确定会显示“请输入登录名!”图5.73.如果密码不填写,单击确定会显示“请输入登录密码!”图5.84输入管理员名与登录密码后,单击重填按钮,管理员名与登录密码会被清空。图5.95.管理员名与登录密码填写完整后,单击确定会显示“增加用户成功!”单击确定转回系统用户管理界面。图5.10表5.2 用户存款信息管理测试用例测试场景测试项目预测结果(正常)测试结果前台一般用户登陆进行存款信息管理用户登录1正常情况下,用户登录,输入正确的用户名,密码将进入主页面图5.11图5.12列表页1正常情况下,一般用户登录后,点击存款信息管理,会显示下拉列表,包含存款信息管理与增加存款信息两个表单。图5.13添加页1正常情况下,单击增加存款信息会显示需要增加的存款信息包括存款人姓名、住址、存款类型、存款金额。图5.142单击提交数据按钮,如果有信息没有填写,会显示“所有项目必须填写!”。图5.153. 单击提交数据按钮,如果信息填写都正确而且完整,会显示“操作成功”。单击确定按钮后会跳转至存款信息管理页面,并显示详细存款信息。图5.164.单击在线打印会显示打印页面。图5.17图 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 在线打印页面结束语本文通过本系统设计与开发,从而得出下列结论: (1)学习一门新技术,最重要的是实践,只有多动手才能尽快掌握它。(2)一个系统的开发,经验是最重要的,经验不足,就难免会有许多考虑不周之处。(3)要想吸引更多的用户,系统的界面必须要美观、有特色、友好,功能要健全。不过由于经验不足,我设计的图形界面比较简单。只是对基本功能进行了开发。(4)本次开发,我参考了很多本系统的例子,吸取了一些别的本系统的长处,对自己的毕业设计进行了完善,但是还有很多的不足之处,有待以后进一步学习。实践证明,本系统有着很好的发展前景,经测试运行。本文所制作的系统界面友好、使用灵活、操作简单、功能齐全、表现方式独特,已基本具备了成熟的技术理论。由于时间仓促,本次设计由我完成本系统的制作,对我这样一个JSP新手而言所制作的模块还有不完善的地方。数据库的设计也比较简单。还有很多毕业设计中用到JSP语言的知识也不够全面,还有很多地方不能够作到完全的理解和掌握。通过这次毕业论文的设计制作使本人受益匪浅。首先,由于毕业设计所用的JSP技术和其中用到JSP语言的其他部分是在课堂上没有接触过的,要用它来做设计必须通过大量自学来掌握,在这个过程中,不仅大大提高了我的自学能力而且让我对JSP的学习有了进一步的认识 。由于是独立完成在毕业设计的过程遇到了很多的困难,我求教了不少老师和同学,在这个过程中让我体会到了,一个团队的重要性。Web开发中安全性是必须考虑的一个很重要的方面,特别是在诸如个信息等敏感数据的模块中更是关键,所以这也是后期开发需要引起重视的。下面就这方面的技术和解决方案加以讨论。(1) 安装防火墙:安装防火墙并且屏蔽数据库端口能有效地阻止了来自Internet 上对数据的攻击。(2) 输入检查和输出过滤:用户在请求中嵌入恶意HTML标记来进行攻击破坏,防止出现这种问题要靠输入检查和输出过滤,而这类检查必须在服务器端进行,一旦校验代码发现有可疑的请求信息,就将这些可疑代码替换并将其过滤掉。参考文献1 William Stallings.操作系统-精髓与设计原理:电子工业出版社,2009年2 萨师煊,王珊.数据库系统概论.北京:高等教育出版社,2000年3 王怀民.企业应用架构模式:机械工业出版社 ,2004 年 4 张海藩.软件工程导论:清华大学出版社,2008年5 李钟尉,马文强,陈丹丹.java从精通到入门:清华大学出版社,2010年致 谢 在本次毕业论文过程中,特别感谢田璟霞老师的悉心指导和大力支持,在总体结构、功能的把握上给予了非常大的帮助,同时根我们提供了非常优越的设计环境,并对我在编程、数据库设计等细节工作上给予了耐心的指导,对于我顺利完成这次毕业论文起到了关键性的作用。 我还要感谢我的母校,以及在大学四年生活中给予我关心和帮助的老师和同学,是他们教会了我专业的知识和做人的道理。通过这次毕业论文我还明白了作为一名通信工程专业的大学毕业生,我们要会的不仅仅是编写代码,更重要的是要有整体把握系统设计的能力。我会在以后的工作和学习中不断完善自己,为我最热爱的母校争光,为自己翻开辉煌的新篇章。附录 英文资料翻译英文原文: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, 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编程语言完成的事情,同样可以用汇编语言来完成,但是选择哪种语言依旧十分重要。和单独使用servler相比,JSP提供下述好处:JSP中HTML的编写与维护更为简单。JSP中可以使用常规的HTML:没有额外的反斜杠,没有额外的双引号,也没有暗含的Java语法。能够使用标准的网站开发工具。即使对那些对JSP一无所知的HTML工具,我们也可以使用,因为它们会忽略JSP标签(JSP tags)。可以对开发团队进行划分。Java程序员可以致力于动态代码。Web开发人员可以将经理集中在表示层(presentation layer)上。对于大型的项目,这种划分极为重要。依据开发团队的大小,及项目的复杂程度,可以对静态HTML和动态内容进行弱分离(weaker separation)和强分离(stronger separation)。在此,这个讨论并不是让您停止使用servlets,只使用JSP。几乎所有的项目都会同时用到这两种技术。针对项目中的某些请求,您可能会在MVC构架下组合使用这两项技术。我们总是希望用适当的工具完成相对应的工作,仅仅是servlet并不能填满您的工具箱。B. JSP的由来Sun
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:银行个人储蓄业务系统设计
链接地址:https://www.renrendoc.com/p-32842830.html

官方联系方式

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

网站客服QQ:2881952447     

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

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

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