房地产售房信息管理系统毕业设计(论文)

上传人:仙*** 文档编号:253593346 上传时间:2025-03-16 格式:DOC 页数:75 大小:847KB
收藏 版权申诉 举报 下载
房地产售房信息管理系统毕业设计(论文)_第1页
第1页 / 共75页
房地产售房信息管理系统毕业设计(论文)_第2页
第2页 / 共75页
房地产售房信息管理系统毕业设计(论文)_第3页
第3页 / 共75页
资源描述:

《房地产售房信息管理系统毕业设计(论文)》由会员分享,可在线阅读,更多相关《房地产售房信息管理系统毕业设计(论文)(75页珍藏版)》请在装配图网上搜索。

1、大连交通大学信息工程学院2012届本科生毕业设计(论文)外文翻译 大连交通大学信息工程学院 毕业设计(论文)任务书 题 目 房地产售房信息管理系统                  任务及要求: 1.设计(研究)内容和要求  任务: 1、 调查信息管理自动化的技术发展近况,完成实习报告,字数不少于3000,第三周交给指导老师。 2、 结合自己实习情况安排进度,填写进度计划表,第二周完成后交给指导老师签字,并严格执行。 3、 按照软件工程思想,独立完成系统的设计和程序开发,完成代码估计2000行左右。 4、 用JSP技术实现

2、房地产售房信息的管理。 5、 程序简洁,算法可行,运行情况良好。 要求: 1、 每周和指导老师至少见面沟通一次,回报课题进展情况,接受老师询问。 2、 接到任务书后,查阅与题目及专业相关的外文资料进行翻译,要求不少于10000个外文字符,译出汉字不得少于3000,于第四周交给指导老师审阅。 3、 毕业设计第13周完成毕业论文的装订,并由指导老师评阅。论文要求12000字以上,包括综述、系统总体设计、系统实现、性能分析、结论等。 4、 教学第13周通过中软及教研室组织进行软件验收,验收时要提供软件使用说明书。 5、 于第13周提出毕业答辩申请并签字。 6、 第14 周答辩,要求制

3、作PPT 2.原始依据 通过大学几年的学习,已经学习了诸如软件工程、数据库原理及应用、数据结构、C++、Visual Basic、JAVA等多门程序设计语言和网络等基础知识和专业知识,学生有能力而且可以独立完成小中型项目的设计与开发。学校现有设备和环境可以提供给学生实习和上机,而且具有专业老师可以指导学生。 3.参考文献 [1] 黄梯云.管理信息系统[M].高等教育出版社.2009.3 [2] 常春光.房地产管理信息系统[M].大连理工大学出版社.2008年 [3] Stuart I Greenbaum. George Kanatas a

4、nd Itzhak Venezia.Loan commitments and the management of uncertain credit demand.The Journal of Real Estate Finance and Economics.2008.4 [4] Ding Lu Responses to Globalization from a Big Transition Economy:The Case of China Global Economic Review.2008.3 [5] 李红.梁晋.电子商务技术[M].人民邮电出版社.2009

5、 [6] 马云霞.房地产行业顾客客户信息的数据统计与分析.2009 [7] 卡恩.张红.房地产市场分析方法与应用[M].北京:中信出版社.2009 [8] 陈畴踊.信息资源管理[M].浙江大学出版社.2009年6月 [9] 张欣宇.房屋销售管理系统的设计与实现[D].大连理工大学硕士论文.2008 [10] 常晋义.邹永林.周蓓.管理信息系统[M].北京:中国电力出版社.2009 [11] Jin Hongfu.Analysis and Design for a Management Information System[J].Electronics & Automation.200

6、9 [12] 张基温.信息系统开发案例[M].北京清华大学出版社.2009 [13] 萨师煊.王珊. 数据库系统概论[M].北京:高等教育出版社.2009 指导教师签字: 教研室主任签字:                        年 月 日 大连交通大学信息工程学院 毕业设计(论文)进度计划与考核表 学生姓名 王旭弘 专业班级 软件工程 08-2班 指导教师 王鑫 翟悦 本课题其他人员 无 题 目 房地产售房信息管理系统 日 期 计划完成内容 完成情况 指导老师检查签字 第

7、1周 实习调研,查阅课题相关外文资料 第2周 了解行业状况、查阅文献资料,阅读资料,撰写调研报告 第3周 完成10000字符或3000汉字以上的外文翻译资料,准备资料,学习JSP技术 第4周 进行需求分析 第5周 进行概要设计 第6周 进行概要设计, 基本框架完成,提交毕业论文提纲 第7周 完成后台数据库的设计并编码,完成部分论文 第8周 完成前台界面的设计并编码,完成部分论文 第9周 继续编码并进行测试,继续编写毕业设计论文 第10周 继续进行程序测试,继续编写毕业设计论文

8、 第11周 整理资料、文档、图表等,修改毕业设计论文 第12周 完成毕业设计论文,打印,按要求装订 第13周 软件验收和准备毕业设计答辩 第14周 毕业设计答辩及成绩评定 指导教师签字:              年  月  日 注:“计划完成内容”由学生本人认真填写,其它由指导教师考核时填写。 大连交通大学信息工程学院 毕业设计(论文)调研报告 学生姓名 王旭弘 专业班级 软件工程08-2班 指导教师 王鑫 翟悦 职 称 高工 讲师

9、 所在单位 信息科学系软件工程教研室 教研室主任 刘瑞杰 完成日期 2012 年 4 月 6 日 实习报告 1 课题来源及意义 近年来随着计算机的日益普及和网络(特别是因特网)的迅速发展,在全球范围内形成了一种新的企业经营方式,他们把所有的商业活动和贸易往来电子化,利用发达的网络环境进行快速有效的商业活动。这就是最近成为世界上最热门的话题:电子商务。 随着计算机及网络技术的飞速发展,Internet/Intranet应用在全球范

10、围内日益普及,当今社会正快速向信息化社会前进,信息自动化的作用也越来越大。从而使我们从繁杂的事务中解放出来,提高了我们的工作效率。 现在的房产企业,为获得更好的经经收益,一般都投入巨额的宣传费宣传自己;但利用的一般都是传统的宣传媒体,例如户外广告牌、车箱广告、电视广告等,很少利用现在流行的网络媒体宣传自己。但是,随着该行业竞争日益的激烈,提高房产企业宣传力度,提升自我形象、为客户提供更好的服务,始终为了公司当前必须考虑的问题。另一方面,随着Internet飞速发展,它越来越成为人们生活中的一部分,人们亲切地把它叫做信息高速公路。计算机技术及通信技术的普及,人们有越来越多的机会,访问Inter

11、net,并从Internet中获取资源,Internet紧密的与人们的生活联系起来。解决企业宣传问题的途径之一,就是将计算机技术引入进来,为用户创建一个交流的平台。管理的任务就在于通过有效地管理人财物等资源来实现企业得到目标,而要管理这些资源,需要通过反映这些资源的信息系统来管理。信息系统可以把为管理而搜集的有效数据流进行收集,组织和控制起来,经过处理转换为数据,经过分析,编程对各级管理人员作决定具有重要意义的有用信息。所以,技术的发展使得传统的宣传方式满足不了了时代的需求。房地产售房信息管理系统是一个房地产公司不可缺少的使用工具,它可以向售楼管理人员提供为制定明智的决策所需的信息。所以房地产

12、售房信息管理系统应该能够为用户提供充足的信息和快捷的查询手段。但一直以来我国的房地产公司使用传统人工的方式管理文件档案,这种管理方式存在着许多缺点,如:效率低、保密性差,另外时间一长,将产生大量的文件和数据,这对于查找、更新和维护都带来了不少的困难。 2 国内外的现状 房地产售房信息管理系统作为房地产信息管理自动化的一部分,管理自动化的发展现状如下。 (1)国外研究现状: 微软公司创始人比尔·盖茨曾说:“房地产业将会由于技术的进步而发生改变,这种改变己经开始并以极快的速度进行,只有意识到这一点的人,才能在房地产业生存下去。"目前,这种预言已经变为了现实。信息技术在美国、欧洲等房地产

13、行业中的应用已很普及,行业发展的信息化程度较高。其中,一个突出的特点是信息技术与业务流程再造相结合,不单是信息技术的简单的应用,而是业务流程再造的过程。 MLS(Multiple Listing Service),即多重上市服务,是十九世纪八十年代产生于美国的一种房地产交易方式。它是由房地产经纪人联合起来,共同建立信息系统,共享系统的信息资源,实现了最早的资源整合。在房地产领域,MLS系统如今己经风行于欧美国家,单在美国,几乎就有90%房地产经纪都加入了该系统,各大州都成立了MLS协会。到目前为止,已成功地实行了MLS系统的有英国、加拿大、澳大利亚、日本、新西兰、新加坡等国家。为房地产企业提

14、供体系统化的经营管理工具和平台,帮助房地产企业实现整合经营和并行管理,达到高效决策、风险预防、开源节流等目标。 在美国,售楼管理信息系统正在改变以经纪人为主要载体的传统房地产经营方式。美国房地产经纪人协会共有70万名成员,90%的经纪人拥有个人电脑,60%的经纪人使用电子邮件与客户联系,72%的房地产公司通过互联网的方式进行房屋销售。据美国房地产经纪人协会的一份调查显示,使用电脑管理系统的房地产经纪人与那些不使用或很少使用的经纪人相比,其年收入要高出$7400美元。美国最大的房地产两站“家居顾问”(HomeAdvisor)仅列出的待售量就有100多万套,约占全美房地产销售量的20%。 (2

15、)国内发展现状: 中国的房地产业是伴随着中国的改革开放、实行社会主义市场经济而发展起来的新兴行业,开发商的规模从小到大,很多都发展成为跨地域的大型集团公司或上市公司,其管理模式也由最初的粗放式管理逐步趋向科学化、规范化的管理模式,其中,企业信息化的建设是提高房地产企业管理水平的重要手段。 与国外相比,我国房地产行业起步较晚,虽然随着信息技术的日益普及和房地产行业在国内的迅猛发展,房地产业已取得了卓有成效的成果,但因为我国房地产行业市场化时间不长、制度政策不完善,使得房地产开发企业管理水平参差不齐,房地产开发信息化管理和规范化管理整体水平仍然不高,一线城市和二三线城市地区差异较大,规范企业和

16、小型公司管理方式不同,信息技术在中国房地产产业中的应用和发展仍存在诸多制约因素。 自住制度改革以来,很长一段时间,房地产市场保持着繁荣的局面,近几年,楼盘的销售不断升温,房地产经济公司的管理业务流程也得到不断提升,但是在08年爆发的金融危机不得不提醒我们更好的来管理房产业务。当前的金融危机是由美国房产市场泡沫促成的,房产作为交易对象的流通市场,它是房地产业进行社会再生产的基本条件,并可带动建筑业建材工业等诸多产业发展,国外房产经纪的失误,带来的这次严重的影响,虽然说金融危机的产生不可避免,但如果有良好的房地产管理信息系统,那么房产泡沫的影响就会得到减小,对客户利益的影响也会减少。随着国内房产

17、市场的发展以及国家对楼市的调控,房地产张的重视,房产管理系统会得到一个空前良好的发展前景。优秀的房产管理系统可以把房产市场的市场机制合理实现,并且提高房产的价值和使用价值,可提高房地产业的经济效益,促进房产资源的有效配置和房产建设资金的良性循环,因此,建立优秀的房地产管理信息系统是必不可少的。系统工程的方法已经被被不断应用于人口问题,能源规划,农业系统以及区域发展战略和军事系统等方面,作为分析和解决系统开发,运作及管理实践中的问题所应遵循的工作程序和基本方法,这是选择作为房地产售楼管理管理信息系统的中心思想。而信息系统的数据存放在数据苦衷,数据库技术为信息系统提供了更有效数据管理的手段,所以,

18、掌握了数据库管理系统也儿就能够胜任信息系统的开发设计和应用工作了。 由于国外企业在资金、技术和管理等方面具有显著优势,他们开发的商品房质量更好,品质更佳,建设成本更低,所以,国内的房地产市场竞争格局将会发生明显变化。国内关于售楼管理信息系统正处于研究起步阶段,更多更优秀的售楼管理信息系统正在被开发出来,房地产商们已经不仅仅将眼光局限于电视广告宣传等手段,更注重了利用计算机技术提高企业的高效管理,来提高房地产的经营策略,利用售楼管理信息系统及时了解楼盘的动态销售情况,还能充分利用电脑的可检索性、方便、快速地了解有关销售楼盘的其他各种详细资料,以便及时做出正确决策。为了要在激烈的市场竞争中取得

19、优势,国内的房地产企业必须要有市场危机意识,强化企业管理,逐步形成企业的核心竞争力,以高科技、高品质、高效益、低消耗、低成本、创品牌的房地产开发,不断开拓市场、占领市场,才能维持企业的生存和发展。只有这样,在预算内按时开发符合客户真正需要的高质量软件,国内房地产企业才能将前所未有的竞争压力变为竞争动力,才能在全球的房地产市场竞争中占有一席之地。 3 本课题的研究目标 本系统使用SUN公司推出的JSP进行前端开发,通过JSP和数据库进行无缝连接,大量应用了JAVA中的控件和触发事件。后台的数据库管理系统是SQL Server 2000,整个数据库都是相互关联的,具有较高的完整性,一致性和安全

20、性。 根据软件开发流程,本系统的开发过程是:首先在短时间内建立系统应用原型;然后,对初始原型系统进行需求迭代,不断修正和改进,直到形成用户满意的可行系统。 本系统总体的功能是实现宏港房地产开发有限公司销售管理的系统化、规模化和自动化,实现用户在网络中,足不出户就可以对房地产售房信息进行管理。 4 研究内容 1、本系统总体的功能是实现房地产开发有限公司房地产售房信息管理系统的系统化、规模化和自动化,具体包括如下功能模块: (1)楼盘资料管理:包括项目信息管理和房型信息管理。楼盘房屋资料管理包括楼盘名称、地理位置、占地面积、建筑面积、建筑密度、绿化面积、开发日期、楼房数量、房屋数量、

21、售出数量、预定数量、剩余数量等资料的管理。房型信息管理包括对房屋编号、所在楼盘、房型名称、所在楼号、所在单元、所在楼层、门号、建筑面积、合计金额的管理,可以对他们进行录入、修改、查询等操作。 (2)房屋销售管理:房屋销售管理包括对房屋编号、客户编号、所在楼盘、房型名称、所在楼号、所在单元、所在楼层、门号、建筑面积、合计金额、客户姓名、所在单位、联系电话、身份证号的管理,可以对他们进行查询等操作。 。 (3)客户信息管理:包括客户资料管理。客户资料管理包括有编号、姓名、所在单位、联系电话、身份证号。 (4)员工信息管理: 包括职工资料管理。职工资料管理包括有员工编号、员工姓名、员工性别、

22、出生日期、员工职务、联系电话、家庭住址。 (5)系统维护:系统维护包括用户的注册,用户的删除,密码的修改。因为本系统为企业的管理系统,其中涉及到商业机密,所以设置了两个权限,管理员和操作员。 2、为保证系统的高效、科学、合理,系统应实现以下目标: (1)系统能够稳定、可靠的运行,具有良好的可维护性、可扩展性、可移植性。在数据组织、系统功能、系统结构上保留足够的扩充余地,便于今后的扩充。 (2)系统能够简化管理,提高效率。 (3)系统能够提供流畅的数据信息处理、快速方便的信息查询。为确保系统实际应用时的科学性和先进性,本系统采用B/S 结构的设计思想。 (4)系统具有良好的安全保密性

23、能,良好的误操作保护。 (5)具有良好的用户接口,操作简单、方便,易于学习和掌握。 5可行性分析 营运可行性分析:在本系统的运营阶段,使用系统的工作人员,除了需要具备在Microsoft Windows平台上使用个人电脑的知识,并不需要特别的技术能力。这方面的知识,与系统有直接接触的职员都已经具备。并且在项目投产前,还会安排对操作系统的人员进行必要的培训。系统技术维护支持工作,在初期仍将由硬件供应商及本人完成,以后由信息部接手。该公司信息完全具备使用维护该系统的能力。因此本系统营运方面可行。 经济可行性分析:本系统的实施所需经费主要用于购买软、硬件、系统开发及系统维护。本系统总体耗费不

24、多,是在一个企业可以承担的范围之内的。应用本系统将帮助房屋销售工作人员提高工作效率,更简便的填写房产信息,更加快捷的查询统计房产信息,同时,有利于房地产公司各部门之间更好的沟通,从而提高了办事效率,减少了消耗成本。本系统开发经费并不是很多。对于规模不很大,经费有限的单位在经济上是可以接受的,并且本系统实施后可以显著提高效率,很快就可以体现经济效益。 技术可行性分析:从软件角度来看,现在软件技术发展的已经比较成熟,无论是数据库还是应用程序都可以实现系统功能;从硬件角度来看,系统所要用到的硬件都可以购买到,可以满足系统要求。从人员角度来看,本系统所面向的用户是公司内部职员,就是平时在公司内部工作

25、的职员,他们平时工作就离不开电脑,懂得基本微机操作,无须另聘专人即可使该系统正常实施运行。从技术角度来看,开发技术和数据库技术已经具备了完备、成熟的理论和体系结构。所以本系统的开发在技术上完全可行。 经以上分析,本系统的开发具有可行性。 6 研究方法与系统采用技术 开发工具:MyEclipse 系统服务器:Tomcat 6.0 数据库:SQL2000数据库。 开发时用到的技术有: 1 Servlet:一种服务器端的Java应用程序。 2 JSP:是由Sun Microsystems公司倡导、许多公司参与一起建立的一种动态网页技术标准。 3 Html:超文本标记语言或超文本链

26、接标示语言。 4 CSS:层叠样式表。 5 Javascript脚本语言。 6 Xml可扩展标记语言。 7 进度安排 第1周 实习调研,查阅课题相关外文资料 第2周 了解行业状况、查阅文献资料,阅读资料,撰写调研报告 第3周 完成10000字符或3000汉字以上的外文翻译资料,准备资料,学习JSP技术 第4周 进行需求分析 第5周 进行概要设计 第6周 进行概要设计, 基本框架完成,提交毕业论文提纲 第7周 完成后台数据库的设计并编码,完成部分论文 第8周 完成前台界面的设计并编码,完成部分论文 第9周 继续编码并进行测试,继

27、续编写毕业设计论文 第10周 继续进行程序测试,继续编写毕业设计论文 第11周 整理资料、文档、图表等,修改毕业设计论文 第12周 完成毕业设计论文,打印,按要求装订 第13周 软件验收和准备毕业设计答辩 第14周 毕业设计答辩及成绩评定 8 参考文献 [1] 黄梯云.管理信息系统[M].高等教育出版社.2009.3 [2] 常春光.房地产管理信息系统[M].大连理工大学出版社.2008年 [3] Stuart I Greenbaum. George Kanatas and Itzhak Venezia.Loan commitments and the

28、 management of uncertain credit demand.The Journal of Real Estate Finance and Economics.2008.4 [4] Ding Lu Responses to Globalization from a Big Transition Economy:The Case of China Global Economic Review.2008.3 [5] 李红.梁晋.电子商务技术[M].人民邮电出版社.2009 [6] 马云霞.房地产行业顾客客户信息的数据统计与分析.2009 [7] 卡恩.张红.房地产市

29、场分析方法与应用[M].北京:中信出版社.2009 [8] 陈畴踊.信息资源管理[M].浙江大学出版社.2009年6月 [9] 张欣宇.房屋销售管理系统的设计与实现[D].大连理工大学硕士论文.2008 [10] 常晋义.邹永林.周蓓.管理信息系统[M].北京:中国电力出版社.2009 [11] Jin Hongfu.Analysis and Design for a Management Information System[J].Electronics & Automation.2009 [12] 张基温.信息系统开发案例[M].北京清华大学出版社.2009 [13] 萨师煊.

30、王珊. 数据库系统概论[M].北京:高等教育出版社.2009 大连交通大学信息工程学院 毕业设计(论文)外文翻译 学生姓名 王旭弘 专业班级 软件工程08-2班 指导教师 王鑫 翟悦 职 称 高工 讲师 所在单位 信息科学系软件工程教研室 教研室主任 刘瑞杰 完成日期 2012 年 4 月 13 日 JSP application frameworks What are

31、 application frameworks: A framework is a reusable, semi-complete application that can be specialized to produce custom applications [Johnson]. Like people, software applications are more alike than they are different. They run on the same computers, expect input from the same devices, output to t

32、he same displays, and save data to the same hard disks. Developers working on conventional desktop applications are accustomed to toolkits and development environments that leverage the sameness between applications. Application frameworks build on this common ground to provide developers with a reu

33、sable structure that can serve as the foundation for their own products. A framework provides developers with a set of backbone components that have the following characteristics: 1.They are known to work well in other applications. 2. They are ready to use with the next project. 3. They can als

34、o be used by other teams in the organization. Frameworks are the classic build-versus-buy proposition. If you build it, you will understand it when you are done—but how long will it be before you can roll your own? If you buy it, you will have to climb the learning curve—and how long is that going

35、to take? There is no right answer here, but most observers would agree that frameworks such as Struts provide a significant return on investment compared to starting from scratch, especially for larger projects. Other types of frameworks: The idea of a framework applies not only to applications bu

36、t to application componentsas well. Throughout this article, we introduce other types of frameworks that you can use with Struts. These include the Lucene search engine, the Scaffold toolkit, the Struts validator, and the Tiles tag library. Like application frameworks, these tools provide semi-compl

37、ete versions of a subsystem that can be specialized to provide a custom component. Some frameworks have been linked to a proprietary development environment. This is not the case with Struts or any of the other frameworks shown in this book. You can use any development environment with Struts: Visu

38、al Age for Java, JBuilder, Eclipse, Emacs, and Textpad are all popular choices among Struts developers. If you can use it with Java, you can use it with Struts. Enabling technologies: Applications developed with Struts are based on a number of enablingtechnologies.These components are not specific

39、 to Struts and underlie every Java web application. A reason that developers use frameworks like Struts is to hide the nasty details behind acronyms like HTTP, CGI, and JSP. As a Struts developer, you don’t need to be an alphabet soup guru, but a working knowledge of these base technologies can help

40、 you devise creative solutions to tricky problems. Hypertext Transfer Protocol (HTTP): When mediating talks between nations, diplomats often follow a formal protocol. Diplomatic protocols are designed to avoid misunderstandings and to keep negotiations from breaking down. In a similar vein, when

41、computers need to talk, they also follow a formal protocol. The protocol defines how data is transmitted and how to decode it once it arrives. Web applications use the Hypertext Transfer Protocol (HTTP) to move data between the browser running on your computer and the application running on the serv

42、er. Many server applications communicate using protocols other than HTTP. Some of these maintain an ongoing connection between the computers. The application server knows exactly who is connected at all times and can tell when a connection is dropped. Because they know the state of each connection

43、and the identity of each person using it, these are known as stateful protocols. By contrast, HTTP is known as a stateless protocol. An HTTP server will accept any request from any client and will always provide some type of response, even if the response is just to say no. Without the overhead of

44、negotiating and retaining a connection, stateless protocols can handle a large volume of requests. This is one reason why the Internet has been able to scale to millions of computers. Another reason HTTP has become the universal standard is its simplicity. An HTTP request looks like an ordinary tex

45、t document. This has made it easy for applications to make HTTP requests. You can even send an HTTP request by hand using a standard utility such as Telnet. When the HTTP response comes back, it is also in plain text that developers can read. The first line in the HTTP request contains the method,

46、followed by the location of the requested resource and the version of HTTP. Zero or more HTTP request headers follow the initial line. The HTTP headers provide additional information to the server. This can include the browser type and version, acceptable document types, and the browser’s cookies,

47、just to name a few. Of the seven request methods, GET and POST are by far the most popular. Once the server has received and serviced the request, it will issue an HTTP response. The first line in the response is called the status line and carries the HTTP protocol version, a numeric status, and a

48、brief description of the status. Following the status line, the server will return a set of HTTP response headers that work in a way similar to the request headers. As we mentioned, HTTP does not preserve state information between requests.The server logs the request, sends the response, and goes b

49、lissfully on to the next request. While simple and efficient, a stateless protocol is problematic for dynamic applications that need to keep track of their users. (Ignorance is not always bliss. Cookies and URL rewriting are two common ways to keep track of users between requests. A cookie is a spe

50、cial packet of information on the user’s computer. URL rewriting stores a special reference in the page address that a Java server can use to track users. Neither approach is seamless, and using either means extra work when developing a web application. On its own, a standard HTTP web server does no

51、t traffic in dynamic content. It mainly uses the request to locate a file and then returns that file in the response. The file is typically formatted using Hypertext Markup Language (HTML) [W3C, HTML] that the web browser can format and display. The HTML page often includes hypertext links to other

52、web pages and may display any number of other goodies, such as images and videos. The user clicks a link to make another request, and the process begins a new. Standard web servers handle static content and images quite well but need a helping hand to provide users with a customized, dynamic respon

53、se. DEFINITION:Static content on the Web comes directly from text or data files, like HTML or JPEG files. These files might be changed from time to time, but they are not altered automatically when requested by a web browser. Dynamic content, on the other hand, is generated on the fly, typically i

54、n response to an individualized request from a browser. Common Gateway Interface (CGI): The first widely used standard for producing dynamic content was the Common Gateway Interface (CGI). CGI uses standard operating system features, such as environment variables and standard input and output, to

55、create a bridge, or gateway, between the web server and other applications on the host machine. The other applications can look at the request sent to them by the web server and create a customized response. When a web server receives a request that’s intended for a CGI program, it runs that progra

56、m and provides the program with information from the incoming request. The CGI program runs and sends its output back to the server. The web server then relays the response to the browser. CGI defines a set of conventions regarding what information it will pass as environment variables and how it e

57、xpects standard input and output to be used. Like HTTP, CGI is flexible and easy to implement, and a great number of CGI-aware programs have been written. The main drawback to CGI is that it must run a new copy of the CGI-aware program for each request. This is a relatively expensive process that c

58、an bog down high-volume sites where thousands of requests are serviced per minute. Another drawback is that CGI programs tend to be platform dependent. A CGI program written for one operating system may not run on another. Java servlets: Sun’s Java Servlet platform directly addresses the two main

59、drawbacks of CGI programs.First, servlets offer better performance and utilization of resources than conventional CGI programs. Second, the write-once, run-anywhere nature of Java means that servlets are portable between operating systems that have a Java Virtual Machine (JVM). A servlet looks and

60、feels like a miniature web server. It receives a request and renders a response. But, unlike conventional web servers, the servlet application programming interface (API) is specifically designed to help Java developers create dynamic applications. The servlet itself is simply a Java class that has

61、 been compiled into byte code, like any other Java object. The servlet has access to a rich API of HTTP-specific services, but it is still just another Java object running in an application and can leverage all your other Java assets. To give conventional web servers access to servlets, the servlet

62、s are plugged into containers. The servlet container is attached to the web server. Each servlet can declare what URL patterns it would like to handle. When a request matching a registered pattern arrives, the web server passes the request to the container, and the container invokes the servlet. Bu

63、t unlike CGI programs, a new servlet is not created for each request. Once the container instantiates the servlet, it will just create a new thread for each request. Java threads are much less expensive than the server processes used by CGI programs. Once the servlet has been created, using it for a

64、dditional requests incurs very little overhead. Servlet developers can use the init() method to hold references to expensive resources, such as database connections or EJB Home Interfaces, so that they can be shared between requests. Acquiring resources like these can take several seconds—which is l

65、onger than many surfers are willing to wait. The other edge of the sword is that, since servlets are multithreaded, servlet developers must take special care to be sure their servlets are thread-safe. To learn more about servlet programming, we recommend Java Servlets by Example, by Alan R. Willia

66、mson [Williamson]. The definitive source for Servlet information is the Java Servlet Specification [Sun, JST]. JavaServer Pages: While Java servlets are a big step up from CGI programs, they are not a panacea. To generate the response, developers are still stuck with using println statements to render the HTML. Code that looks like: out.println("

One line of HTML.

"); out.println("

Another line of HTML.

"); is all too common in servlets that generate the HTTP response. There are l

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

相关资源

更多
正为您匹配相似的精品文档
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  sobing.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


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