基于SSH架构的交流社区毕业设计外文翻译_第1页
基于SSH架构的交流社区毕业设计外文翻译_第2页
基于SSH架构的交流社区毕业设计外文翻译_第3页
基于SSH架构的交流社区毕业设计外文翻译_第4页
基于SSH架构的交流社区毕业设计外文翻译_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、毕业设计说明书英文文献及中文翻译班 级: 学号: 姓 名: 学 院: 专 业: 指导教师: 外文参考文献原文1 struts framework based on mvcin the traditional web application, java server pages(jsp) pages are responsible for handling all things, for example, receiving requests, executing business logics, choosing the next page. these complicated things

2、may lead to chaos of jsp pages codes and be harmful for the extension and maintenance of pages. the model-view-controller (mvc) mode separates the programming codes into three different areas, which has solved the above problem. mvc can realize j2ee application systems stratification and the loose c

3、oupling of three layers or multilayer, and it is a realization way of orienting dynamic content. the mvc mode divides application into three core components of model, view and controller.struts is a realization of mvc. it is an open source web application framework and uses servlet and jsp marks tha

4、t belong to the j2ee norm as a part of the realization. struts inherits mvc characteristics and realizes some corresponding changes and extension according to j2ee traits. struts separates java codes of jsp by java bean and action class to be the mvc mode, transmits data among the three partitions o

5、f model, view and controller, demonstrates the connection between various classes and jsp pages by configuration files finally and it intends to realize the separation of presentation layer, business layer and data layer. the struts structure is shown in figure 1.the model contains the business logi

6、c that exchanges data with a persistence layer. the view is in charge of producing what is directly visible to the user, e.g. web pages. the controller is the layer that receives requests from clients, determines what business logic takes place and where to go next. in the struts framework, the mode

7、l uses java classes for the business logic. the view can be implemented with jsp and the tag lib of struts. the controller is a j2ee component known as servlet, more specifically an actionservlet object, which determines what or when logic gets executed and where the control should get directed.figu

8、re 1. struts structure 2 hibernate framework based on ormworking with both the object-oriented software and the relational database is a complicated task with java database connectivity (jdbc) because there is mismatch between how data is represented in objects versus relational database. so with jd

9、bc, developers have to write pure the structured query languag (sql) statements to map an object models data representation to a relational data model and its corresponding database schema.2.1 introduction of hibernatehibernate is a flexible and powerful object-relational mapping (orm) solution to m

10、ap java classes to database tables. it is a powerful, high performance object-relational persistence and query service. hibernate allows developers to express queries in its own portable sql extension (hibernate query language (hql)3, as well as in native sql, or with an object-oriented criteria and

11、 example application programming interface(api). hibernate itself takes care of this mapping using xml files so developers dont need to write code for this.hibernate is an open source and it is free to use for both development and production deployments, which is a bridge between java application an

12、d relational database and takes charge of mapping between java objects and relational data. the inside of hibernate packs the operation of accessing database by jdbc, which provides api of object-oriented database access to upper layer application. so developers can use the object programming though

13、t to operate database sufficiently, caring for the bottom database structure unnecessarily.hibernate relieves the developer from 95 percent of common data persistence related programming tasks, compared to manual coding with sql and the jdbc api4. and it can integrate various web server or applicati

14、on server, and nearly support all popular databases server.2.2 principle of hibernatefigure 2. hibernate systematic structureas shown in figure 2, hibernate lies in the middle layer that is between application and database .in the provided persistent service, hibernate maps class to rows of datashee

15、t by properties and mapping files of class (mapping.xml) itself. application interacts with database by persitstent object (po) to handle data directly.3 the integration of struts and hibernatein the open source frameworks, for the presentation part, tapestry has the powerful and natural combination

16、 of pages, its document is too conceptional to benefit programming. and its learning curve was too steep and so on. for the logic part, spring has a good integration function, but there is a lack of public controller. and ejb depends on the ejb containers, at the same time, it is realized complicate

17、dly. while struts has been applied extensively because of its advantages.at present, most of systems apply the relational databases mainly, while java is an object-oriented language essentially. in model part of struts framework application, using sql and jdbc to operate databases when storing and f

18、etching objects reduces programming efficiency and the systematic maintainability. traditional j2ee-based application applies heavyweight framework based on ejb that adapts to the large enterprise development, while development and debugging by ejb container need to consume a plenty of time and high

19、 price. ejb3 improves the disadvantages of original ejb, but its application is not mature yet.hibernate can substitute container-managed persistence (cmp) to accomplish heavy responsibility of permanence in j2ee framework of applying ejb.in a word, hibernate can resolve the difficulties coming from

20、 using traditional cmp, jdbc and data access object(dao) in a technological development. for reducing the coupling of code and raising systematic development efficiency, this paper suggests j2ee application development tactics based on struts and hibernate.the struts design shows the mvc framework s

21、ufficiently, which all control flows need a configuration file (struts-config.xml) to manage, and which is convenient to maintain. the integration of struts and hibernate is that hibernate solves the model layer of struts, which makes developers operate java objects instead of database. the integrat

22、ion shows the object-oriented thought sufficiently and solves some problems of the database operation in traditional j2ee well.3.1 flow of frameworkthe flow of integration framework based on struts and hibernate is shown in figure 3. at first, users send http requests by browser, then http requests

23、are accepted by actionservlet of the control component in business layer, then gave to requestprocessor which gets corresponding action from actionmapping by request url3. besides, actionform packs jsp pages, which can make a checking to data of datasheet if it is needed, send back actionerrors to v

24、isual pages if there are mistakes and transfer the data of pages to action if it passes validation.request processor transfers the “execute” method of action and the method transfers the business logic module. hibernate accomplishes interaction of databases and javabean. the operation of processing

25、business logic interacts with database by data permanence layer and field object layer. the “execute” method of action will return actionforward objects that are accepted by actionservlet after executing.3.2 systematic structure of the integration frameworkthe eis layer of the multi-layer j2ee syste

26、matic structure can be partitioned into the data permanence layer and the data resource layer. it means a system can be divided into five layers as a whole.client layer: this layer runs in the browser of users machines and handles interaction with users, transmits and shows messages to users. j2ee p

27、latform supports different type users including html users, java applets, java application, etc.presentation layer: this layer works in j2ee web container, produces the systematic representation logic, handles users requests and makes the responses. the entire web is built on struts framework, in wh

28、ich the view component is composed of jsp/html pages whose data is expressed by actionform bean, the controller component is composed of actionservlet united struts-config.xml and action classes, and the model component is realized by business logic layer.business logic layer: this layer accomplishe

29、s the required business of system, provides the required business method to presentation layer. it can receive data from client programs and save them to the storage equipment after proper disposal, read data from the data storage equipment, then send them out to client programs.this layer is compos

30、ed of business objects (bo) such as javabean and session ejb.figure 3. flow chart of the integration framework based on struts and hibernate外文参考文献译文1 基于mvc的struts框架在传统的web应用程序,java服务器页面(jsp)页面负责处理所有的事情,例如,接收请求,执行业务逻辑,选择下一个页面。这些复杂的事情,可能会导致混乱jsp 页面编码和有害的扩展和维护的jsp页面。模型-视图-控制器(mvc)模式编程代码分离成三个不同的区域,它已经解决

31、了上述问题。 mvc可以实现j2ee应用程序的系统的分层和三层或多层的松散耦合,它是一个实现的定向动态内容的方式。 mvc模式把应用程序分成三个核心部件的模型,视图和控制器。struts是一个mvc实现。它是一个开源web应用框架,使用servlet和jsp标记属于j2ee规范的一部分实现。的struts继承了mvc的特点和根据j2ee性状,实现一些相应的变化和扩展。 struts的分离jsp的java代码的java bean和action类是mvc模式,数据传输三者间的分区模型,视图和控制器,演示各种类和jsp页面之间的连接配置文件,终于和它打算实现表现层,业务层和数据层的分离。 strut

32、s的结构示于图1。该模型包含业务逻辑交换数据持久层。查看是负责生产的,什么是直接对用户可见,例如网页。控制器层,接收来自客户端的请求,决定哪些业务逻辑需要的地方,下一站去哪里。在struts框架中,模型用业务逻辑的java类。 jsp和taglib是struts的视图可以实现。该控制器是被称为servlet的j2ee组件,更具体一个actionservlet的对象,这就决定什么逻辑被执行时,应该得到控制。图1.struts结构2 基于orm的hibernate框架java数据库连接(jdbc),面向对象的软件和关系数据库的工作是一项复杂的任务,因为数据是如何表示的对象与关系数据库之间存在不匹配

33、。因此,使用jdbc,开发人员必须写纯结构化查询语言开发(sql)语句对象模型的映射数据表示关系数据模型及其相应的数据库架构。2.1 hibernate介绍hibernate是一个灵活和强大的对象-关系映射(orm)的解决方案,java类映射到数据库表。这是一个强大的,高性能的对象关系持久性和查询服务。hibernate允许开发人员在其自己的便携式sql扩展来表达查询(hibernate查询语言(hql),以及在本地的sql,或面向对象的标准和示例应用程序编程接口(api)。hibernate自身需要照顾这个映射使用xml文件,以便开发人员不需要编写代码。hibernate是一个开放源代码和用

34、于开发和生产部署,这是一个桥梁java应用程序关系数据库之间和负责的java对象和关系数据之间的映射,它是免费的。里面的hibernate包jdbc,它提供了面向对象的数据库访问到上层应用的api访问数据库的操作。因此,开发人员可以使用对象编程思想,充分操作数据如图2所示,休眠在于中间层和应用程序之间提供了持续的服务,hibernate的映射类类的属性和映射文件(mapping.xml中)本身的数据表行database。应用程序与数据库由持久化对象(po)直接处理数据。库,关怀不必要底层数据库结构。hibernate的减轻了开发人员常见的数据持久化相关的编程任务的95,比手动编码的sql和jd

35、bc api。它可以集成各种web服务器或应用服务器,几乎支持所有流行的数据库服务器。2.2 hibernate标准图2.hibernate系统结构如图2所示,休眠在于中间层和应用程序之间提供了持续的服务,hibernate的映射类属性和映射文件(mapping.xml中)本身的数据表行database。应用程序与数据库由持久化对象(po)直接处理数据。3 struts和hibernate的整合在开源框架,用于演示的一部分,代理路由算法具有强大能自然的和网页结合,其文件是太概念性受益编程的。其学习曲线太陡等。spring的逻辑部分,具有良好的整合功能,但是缺乏公众控制器。和ejb 依赖于ejb容器,在同一时间,实现复杂。虽然struts已经被广泛应用,因为它的优势。目前,大多数的系统关系数据库应用为主,而java是一种面向对象的语言本质。在struts框架的应用程序,使用sql和jdbc来操作数据库存储和获取对象

温馨提示

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

评论

0/150

提交评论