Spring和MyBatis的外文翻译分析

合集下载

Spring和MyBatis的外文翻译..

Spring和MyBatis的外文翻译..

本科生毕业设计 (论文)外文翻译原文标题MVC Design Pattern for the multi frameworkdistributed applications using XML, spring and strutsframework译文标题使用XML,Spring和struts以MVC为设计模式的多分布式应用程序框架作者所在系别计算机与遥感信息技术学院作者所在班级B12511作者姓名王硕作者学号20124051117指导教师姓名耿炎指导教师职称院长完成时间2015 年1 月北华航天工业学院教务处制译文标题使用XML,Spring和struts以MVC为设计模式的多分布式应用程序框架原文标题MVC Design Pattern for the multi frameworkdistributed applications using XML, spring and struts framework作者Praveen Gupta 译名普利文·古塔国籍印度原文出处International Journal on Computer Science and Engineering 使用XML,Spring和struts以MVC为设计模式的多分布式应用程序框架摘要:模型-视图-控制器(MVC)是一个基本的设计模式,用来分离用户界面与业务的逻辑。

近些年来,应用程序的规模越来越大,而MVC设计模式可以弱耦合不同应用层的程序。

本文提出了一种基于J2EE平台上的网络,它扩展了MVC、XML 的应用程序框架,易于维护。

这是一个包括表示层、业务层、数据持久层和数据库层的多系统层,由于其代码的具有独立性,可维护性和可重用性大大提升。

在本文中,我们使用MVC实现spring和struts框架。

我们的研究显示,应用多个框架设计应用程序时,使用MVC概念能使应用程序转变为更容易、较单一的框架。

关键字:MVC,Spring,XML一介绍近些年来,web是非常复杂的问题。

Spring和Mybatis整合英文文档翻译

Spring和Mybatis整合英文文档翻译

Spring和Mybatis整合英文文档翻译Introduction to MyBatis-SpringMyBatis-Spring介绍MyBatis-Spring helps you integrate your MyBatis code seamlessly with Spring. Using the classes in this library, Spring will load the necessary MyBatis factory and session classes for you. This library also provides an easy way to inject MyBatis data mappers into your service beans. Finally, MyBatis-Spring will handle transactions and translate MyBatis exceptions into Spring DataAccessExceptions.MyBatis-Spring帮助我们将MyBatis代码无缝的和Spring整合起来。

通过使用这个类库中类,Spring将为我们加载MyBatis工厂以及session相关的类。

这个类库也提供了一种简单的方式注入MyBatis 数据映射器到我们的业务Beans中去。

最后,MyBatis-Spring将会处理事务以及转换MyBatis的异常为Spring的DataAccessExceptions.Quick Setup快速开始To use MyBatis with Spring you need at least two things defined in the Spring application context: an SqlSessionFactory and at least one data mapper class. In MyBatis-Spring, an SqlSessionFactoryBean is used to create an SqlSessionFactory. To configure the factory bean, put the following in the Spring XML configuration file:为了能够使用MyBatis和Spring,我们至少需要在Spring 应用上下文中定义两个东西:一个SqlSessionFactory和至少一个数据映射器类。

MVC框架中英文对照外文翻译文献

MVC框架中英文对照外文翻译文献

MVC框架中英⽂对照外⽂翻译⽂献中英⽂对照外⽂翻译⽂献(⽂档含英⽂原⽂和中⽂翻译)译⽂:Web 2.0下的Spring MVC框架摘要 - 当要建⽴丰富⽤户体验的WEB应⽤时,有⼤量的WED应⽤框架可以使⽤,却很少有该选择哪⼀种的指导。

WEB 2.0应⽤允许个体管理他们⾃⼰的在线⽹页,并能与其他在线⽤户和服务器共享。

这样分享需要访问控制器来实现。

然⽽,现有的访问控制器解决⽅案不是令⼈很满意。

因为在开放且由⽤户主导的WEB环境下,它满⾜不了⽤户的功能需求。

MVC框架是在所有的WEB开发框架中最受欢迎的。

模型-视图-控制器(MVC)是⼀种软件架构,如今被认为是⼀种体系结构在软件⼯程模式中使⽤。

该模式从⽤户界⾯(输⼊和演⽰)分离出了“领域逻辑”(基于⽤户的应⽤逻辑),它允许独⽴地开发,测试和维护每个分离的部分。

模型-视图-控制器(MVC)模型创建的应⽤分离为不同的层次应⽤,同时在每两者之间建⽴松散的耦合。

关键字 - Spring MVC, 结构, XStudio, SOA, 控制器I.绪论如何确切地定义⼀个⽹站为“WEB 2.0”的呢?关于这有着许多不同见解,使它很难精确地下⼀个确切的定论。

但当我们将所有的WEB开发框架过⼀遍之后它就会变得清晰了。

各种基于WEB开发的架构如下:●Ntier架构(Ntier Architecture)在软件⼯程中,多层架构(常被称为n-tier架构)是⼀种表⽰层,应⽤处理层和数据管理层在逻辑上分开处理的客户端-服务器架构。

例如,⼀个应⽤在⽤户与数据库之间使⽤中间件提供数据请求服务就⽤到了多层体系结构。

最为⼴泛应⽤的多层体系结构是三层架构。

N-tier 应⽤架构为开发者提供了⽤来创建了⼀个灵活且可复⽤的模型。

通过打破应⽤层次,开发者只需修改或添加⼀个特定的层,⽽不是要去重写⼀遍整个应⽤。

它需要有⼀个表⽰层,⼀个业务层或者数据访问层和⼀个数据层。

层(layer)和层(tier)之间的概念常常是可以互换的。

spring官网在线学习文档翻译5

spring官网在线学习文档翻译5

spring官⽹在线学习⽂档翻译55. Aspect Oriented Programming with Spring(使⽤Spring进⾏⾯向切⾯编程)5.1. Introduction(⼊门)Aspect-Oriented Programming (AOP) complements Object-Oriented Programming (OOP) by providing another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns such as transaction management that cut across multiple types and objects. (Such concerns are often termed crosscutting concerns in AOP literature.)⾯向⽅⾯程序设计(AOP)通过提供另⼀种考虑程序结构的⽅法来补充⾯向对象程序设计(OOP)。

OOP中模块性的关键单元是类,⽽AOP中模块性的单元是⽅⾯。

⽅⾯⽀持关注点的模块化,例如跨多个类型和对象的事务管理。

(在AOP⽂献中,这样的关注点通常被称为横切关注点。

)One of the key components of Spring is the AOP framework. While the Spring IoC container does not depend on AOP, meaning you do not need to use AOP if you don’t want to, AOP complements Spring IoC to provide a very capable middleware solution.Spring的关键组件之⼀是AOP框架。

外文翻译-Spring的web-MVC-构架模式-精品

外文翻译-Spring的web-MVC-构架模式-精品

外文翻译-Spring的web-MVC-构架模式-精品2020-12-12【关键字】方案、情况、方法、领域、文件、模式、运行、传统、地方、问题、矛盾、系统、机制、良好、执行、发展、建立、提出、掌握、特点、关键、思想、基础、需要、环境、项目、体系、需求、方式、标准、结构、最大限度、任务、反映、关系、设置、分析、简化、丰富、管理、鼓励、维护、确保、服务、帮助、支持、解决、加快、完善、适应、实现、提高、协调、规范、核心Spring的web MVC 构架模式Juergen Hoeller1.介绍:Spring 应用构架当你第一次看到Spring的时候,你一定会说:"哦不,又一种web 构架".这篇文章将告诉你Spring明显区别于其他轻量级application framework, 它将专注于web的支持,与struts 和 webwork有着明显的区别。

在和struts 和 webwork的对比上,Spring是一个服务于所有层面的application framework:提供了bean的配置基础,AOP的支持,JDBC的提取框架,抽象事务支持,等等。

它有一个非常显著的特点:在某个层面上如果你不需要Spring的支持,你就可以不使用String的class,只使用它的某一部分的功能。

从它的设计理念,你可以看到String 帮助你实现了真正的逻辑层和web层的分离:例如。

一个校验应用将不用依靠controllers,就可以实现。

这样的目标是更好的重用和易测:过分依靠不必要的容器和框架将不能实现这一点。

当然,Spring 的自己的web支持和通常框架模式的细致完整.然而,Spring 替换struts,webwork或者其他的web方案非常的容易.对于Spring的web支持或者不同的地方,Spring 允许你在web容器里面建立一个中间层,在测试环境或者标准独立的应用里面来设置重用你的商务逻辑.还有在J2EE环境里面,你的商务逻辑不必依靠容器提供的服务,像JTA ,EJB的支持.良好的构架的web应用可以运行在任何容器上,如,Tomcat 或者 Resin. 值得注意的是,Spring 不是和已经存在的解决方案进行竞争. 我们鼓励结合标准的技术,如, Servlet, JSP, JTA, JNDI, JDBC, and JDO, 和非常匹配的工具,如,Hibernate, Velocity, Log4J, and Caucho's Hessian/Burlap.这个框架的的设计思想是在你的应用需要改良的时候,你将会做一些技术的选择:例如,如果你需要分布式事务处理,你可能需要用Spring的Jta TransactionManager 来实现JTA服务.或者,用DataSourceTransactionManager or HibernateTransactionManager 来实现美妙完美的单个数据库交换。

Spring中文翻译

Spring中文翻译

Spring中⽂翻译Spring IoC 容器1.1 IoC Container 和 Bean 介绍控制反转(Inversion of Control,IoC )也被称为依赖注⼊(Dependency Injection,DI)。

这是⼀个,多个对象仅仅通过构造器参数,⼯⼚⽅法参数,或者对象实例在被构造器初始化或者被⼯⼚⽅法创建返回之后设置属性来定义它们之间的依赖关系(对象之间的调⽤关系)的过程。

容器在它创建 bean 之后,注⼊之间的依赖项。

这个过程和 bean 本⾝通过使⽤类的直接构造器或服务定位机制,来控制其依赖项的实例化或位置,基本上是相反的(因此被称为控制反转)。

由⼈为的new新建对象,⾃⾏控制对象的实例和调⽤关系,转为容器控制。

控制⽅发⽣改变所以是控制反转org.springframework.beans和org.springframework.context是 Spring IoC 容器的基础BeanFactory接⼝,提供了管理任何类型对象的⾼级配置机制ApplicationContext是BeanFactory的⼀个⼦接⼝。

补充更简单与 Spring 的 AOP 特性集成信息资源处理(⽤于国际化)事件发布应⽤层特定的上下⽂。

(例如WebApplicationContext在 Web 应⽤程序中的使⽤)简单的说,BeanFacotry提供了配置框架和基础功能。

ApplicationContext增加了更多的企业特定的功能。

ApplicationContext是BeanFactory的⼀个完整的超集。

在 Spring 中,构成应⽤程序主⼲并且被 Spring IoC 容器所管理的,被称为 beans。

⼀个 bean 是被 Spring IoC 容器实例化,组装和管理的⼀个对象。

不然,bean 仅仅只是你应⽤程序中众多对象中的⼀个。

Beans,之间的依赖关系由容器使⽤的配置元素据所体现。

语篇翻译角度的SPRING译文赏析——以宋德利译文为例

语篇翻译角度的SPRING译文赏析——以宋德利译文为例

86现代交际·2019年18期[作者简介]张歆闵,南京信息工程大学翻译硕士在读,研究方向:英语笔译。

语篇翻译角度的SPRING 译文赏析——以宋德利译文为例张歆闵(南京信息工程大学文学院 江苏 南京 210044)摘要:语篇是语言交际中的意义单位。

在翻译实践中,散文翻译等文学样式的翻译多采用语篇作为翻译单位。

语篇翻译应更加注重语篇的一致性、重点突出和衔接连贯三个方面。

以美国作家詹姆斯•J.凯尔帕特利克的散文SPRING 和宋德利先生对其的译文为例,分别说明这三方面在散文翻译中的具体体现和运用。

关键词:语篇翻译 翻译单位转换 衔接连贯中图分类号:H315.9 文献标识码:A 文章编号:1009—5349(2019)18—0086—03语篇是人们运用语言系统进行交流的段落结构,是表达中实际使用的语义单位。

传统意义上,任何一段口头语言或书面文字,或长或短,即使其内在的语言特征不同,只要这个片段能够构成一个语义整体,即能够相对完整地表达一定的意义,这样的片段都可以被称作语篇(董晓华,2018:24)。

在语篇翻译过程中,译者最重要的工作就是要确保原文语篇中承载的中心信息、主要思想和内容能够顺利传达(司显柱,2002:71)。

翻译文学作品时,语篇作为翻译单位,在散文翻译和其他文学样式的翻译中适用性更强。

在语篇翻译实践中,译者需要结合全语篇的整体状况,运用比较巧妙的方法和精确的词语,恰当地表达出原文的主旨内容,传递出原作者的思想情感。

因此,文学翻译在实践中应该树立明确的语篇意识,译者应从语篇的层面出发,纵览全文,使译文与原文更加契合。

本文将以美国作家詹姆斯•J.凯尔帕特利克(James J.Kilpatrick)的散文SPRING 和宋德利先生对其的译文为例,具体说明语篇的一致性、突出重点和衔接连贯这三个方面在翻译活动中的具体体现和运用。

一、把握文章主题,保证语篇一致性语篇的一致性,指的是整个语篇必须围绕一个中心或主题,尽管表述的角度或方式可能略有差别,但从始至终不能偏离这个中心主题。

关于Spring和ProverbsinLatinAmericanTalk翻译的比较

关于Spring和ProverbsinLatinAmericanTalk翻译的比较

关于Spring和Proverbs in Latin American Talk翻译的比较韩舒亚 G1******* 08英语三班著名翻译学者张培基曾在《英汉翻译教程》中总结说,翻译是一种融理论、技能、艺术于一体的语言实践活动。

的确,仅仅从Spring和Proverbs in Latin American Talk这两篇文章的翻译中翻译的特点就展现的淋漓尽致。

两篇文章虽然篇幅不长,但在翻译过程中却运用了多种翻译理论、翻译技巧,也在一定程度上挑战了初级译者的理解力和表达力。

翻译,作为一项历史悠久的学科,其理论发展到今天可谓数不胜数。

无数学者、专家对翻译理论的总结归纳做出了自己的贡献。

其中,最有名最具代表性的莫过于19世纪末著名翻译家严复在《天演论•译例言》(1898)中,提出了“信、达、雅”(faithfulness, expressiveness and elegance)三字标准:“译事三难:信、达、雅。

求其信已大难矣,故信矣不达,虽译尤不译也,则达尚焉。

所以,Spring和Proverbs in Latin American Talk(下简称Proverbs)二文不论在其他方面又怎样的不同,遵循翻译的三原则,将其译成信达雅的文章还是最基本的要求的。

翻译理论的详细内容这里不再一一赘述,在下面的分析阐释中会有所体现。

总的来说,Spring和Proverbs的翻译区别主要体现在文体风格,内容方面;在技巧方面还是有些相同之处的。

1.文体风格文体风格的不同对文本的翻译有着举足轻重的影响。

英国著名散文家Lord Chesterfield 曾说:“Style is the dress of thoughts , and well –dressed thought , like a well - dressed man , appears to good advantage. ”(风格乃是思想的衣服,而穿着好的思想就像一个穿着好的人一样,可以显得大为生色) ①这足以说明风格的重要。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

本科生毕业设计 (论文)外文翻译原文标题MVC Design Pattern for the multi frameworkdistributed applications using XML, spring and strutsframework译文标题使用XML,Spring和struts以MVC为设计模式的多分布式应用程序框架作者所在系别计算机与遥感信息技术学院作者所在班级B12511作者姓名王硕作者学号20124051117指导教师姓名耿炎指导教师职称院长完成时间2015 年1 月北华航天工业学院教务处制译文标题使用XML,Spring和struts以MVC为设计模式的多分布式应用程序框架原文标题MVC Design Pattern for the multi frameworkdistributed applications using XML, spring and struts framework作者Praveen Gupta 译名普利文·古塔国籍印度原文出处International Journal on Computer Science and Engineering 使用XML,Spring和struts以MVC为设计模式的多分布式应用程序框架摘要:模型-视图-控制器(MVC)是一个基本的设计模式,用来分离用户界面与业务的逻辑。

近些年来,应用程序的规模越来越大,而MVC设计模式可以弱耦合不同应用层的程序。

本文提出了一种基于J2EE平台上的网络,它扩展了MVC、XML 的应用程序框架,易于维护。

这是一个包括表示层、业务层、数据持久层和数据库层的多系统层,由于其代码的具有独立性,可维护性和可重用性大大提升。

在本文中,我们使用MVC实现spring和struts框架。

我们的研究显示,应用多个框架设计应用程序时,使用MVC概念能使应用程序转变为更容易、较单一的框架。

关键字:MVC,Spring,XML一介绍近些年来,web是非常复杂的问题。

因为公司和组织越来越多,不同类型的通讯设备也越来越多,特别当业务要求应用程序使用web和许多通信设备的时候,网络编程的性能越加重要。

所以在互联网上,在增加负载的数据的同时,我们必须照顾体系结构的问题。

让我们简要讨论到目前为止MVC的研究。

1.1没有MVC在web开发的初始阶段,页面被用来设计html,其中Html是纯文本。

这是第一个在互联网上工作的标记语言。

今天仍然是基于块的所有互联网的编程语言。

用户必须实现与静态页面交互,信息手动写在页面时必须改变。

随着时间增长,语言和页面可以按照用户需求相互作用,页面也会有相应的变化。

1.2 MVC模式一第一个重大变化是由于架构的流行,引入了MVC模式。

这种具有控制演示、业务逻辑和流程的架构是以页面为中心,以Java语言为服务器的页面程序。

逻辑就是在这个模型概念中介绍的。

Java bean和scriptlet、表达式等业务逻辑都是以硬性编码的形式存在的。

页面里的所有代码都是用jsp编写的。

让我们假设,我们想传输基于我们收到数据时的jsp的情况。

图一页面导航MVC-1框架1.3 MVC模式二模型1架构能够解决一些网络和网络编程的问题,但仍有很多东西丢失。

它是集中jsp页面的导航,从而能进一步发展的体系结构的观点。

在这个过程中未来发展是Model 2架构。

这个解决了一起使用Servlet和JSP的问题。

能够服务处理初始请求和部分处理数据。

它设置bean然后结果转发到一个jsp页面。

Servlet决定从列表中显示一个页面到页面。

图二MVC-2框架在这个模型中2架构的JSP页面仅用于演示目的。

业务逻辑已经从页面删除。

这使页面更容易表示并且轻、重量级页面也很容易在互联网上显示。

在这个模型中所有的控制和应用程序逻辑都由Servlet处理。

Servlet是用java 编程语言编写的,所以它也是容易处理的Servlet的一部分。

在这种情况下的服务成为全面完整的应用程序,它已成为应用程序的中心点。

在model 2架构中,Servlet成为所有常见任务的“看门人”。

它提供了诸多公共服务,如身份验证、授权、错误控制和应用程序的循环。

此体系结构解决了大部分的问题。

但仍有许多新的问题出现在这个应用架构。

二应用架构与多个框架在越来越多的网络和互联网领域,应用程序的需求正在增长。

单独的一个框架是不能处理应用程序的体系结构的需求的。

满足潮流要求的应用程序有必要设计一个完整的框架体系结构。

Struts框架设计和web应用程序的前端控制开发有着密不可分的联系。

它为用户提供了各种功能交互的应用程序。

它也遵循MVC 2设计特点。

Spring框架是用来设计处理各种任务的。

Spring的工作是基于互联网的应用程序。

它遵循的原则MVC 2。

同时使用Struts和spring框架在单个应用程序应使用MVC设计主体,这样我们可以提高应用程序的性能。

Struts框架包括三个主要模块,简要描述如下:图三Struts框架第一个是使用块控制,以用来表示完整的模型的一部分。

它包含自定义标记库,为我们编写JSP的特定应用程序提供了国际化资源文件。

第二块是代表控制器。

它是导航的完整应用程序,包含XML配置文件和含标签的导航路径。

第三块是模型。

这部分工作主要是分析业务逻辑,抓取和存储数据到数据库中。

它包含Java bean、Enterprise和数据库。

下图显示了struts框架中的组件工作。

图一struts框架组件Struts中的MVC在Spring框架中,MVC的主要表现在以下三个部分。

控制器,Servlet控制器(部分);Java服务器页面(视图部件);应用程序业务逻辑,应用程序的形式(模型)。

Spring组件在Spring里,我们也遵循MVC的原则。

它被设计为基于互联网和桌面的应用程序。

Spring包含三个核心组件。

1,控制器:处理导航逻辑和交互与服务的业务逻辑层2,模型:控制器和视图之间的联系,包含由控制器渲染的视图和其所需的数据3,视图:根据用户请求,呈现从模型中获取数据。

spring MVC核心组件如下。

1.DispatcherServlet:Spring的前端控制器实现。

它是控制器进行交互的第一个请求。

我们也可以说它是一个Servlet的实现。

它控制应用程序的完整流程。

2.控制器:用户创建的组件来处理请求封装导航逻辑代表服务对象的业务逻辑。

3.视图:负责渲染输出。

不同的视图可以在查看设备的基础上,选择不同类型的通信设备和输出结果。

ModelAndView:ModelAndView是spring框架的核心部分。

它实现了应用程序的业务逻辑。

它是由控制器控制。

每当它执行时,都会存储业务逻辑和与之关联的视图。

ViewResolver:根据返回的结果,输出显示收到的ModelAndView。

由逻辑视图名称映射到实际的视图是由它实现的。

这部分标识时实现输出媒体是什么,以及如何显示该媒体。

HandlerMapping:该接口使用DispatcherServlet传入的请求映射到单个控制器。

它标识请求,并调用相应的处理程序提供的服务。

下面的图显示了模型的作用。

在这个dispatcher Servlet应用程序的入口点,Struts部分作为框架,而dispatcher Servlet用于发送请求。

Servlet决定处理程序。

那么它将调用控制器,控制器执行ModelAndView。

图5 序列流应用程序的spring框架三提出的方法这种方法的组合应用为两个框架,struts和spring应用程序开发打下了基础。

序列图的组合应用程序解释如上所述,这是应用程序的主要驱动力。

要想使用这种方法,web应用程序的基本知识是必要的。

我们已经测试了上述概念,找出它优点,上述体系结构的主要优点如下:1.它将提供一个非常简洁的部分之间的行动,行动的形式,控制器,处理data we received from the input.1.3 MVC Model 2 :The model 1 architecture was able to solve some of the problem of the web and internet programming but still there were a lot of things missing from it. It was centered on the navigation of the jsp pages so there was the scope of the further development in the architecture point of view. During this process the next development was the Model 2 architecture. This problem was solved using the Servlet and JSP together. The Servest handles the Initial request and partially process the data. It set up the beans then forward the result to the one of the jsp page. The Servlet decide the one of the page to be displayed from the list of pages.In this Model 2 architecture the JSP Pages were used to Presentation purpose only. The Business logic has been removed from the page. This makes the pages easier to represent and light weight pages which were easy to display on the internet.In this model all Control and application logic were handled by the Servlet. The Servlet was written in the java programming language. So it was also easier to handlethe programming part of the Servlet. In this scenario the Servest becomes the power full for the complete application and It has emerged as the center point for the application.In the model 2 architecture the Servlet becomes the gatekeeper for the all common tasks. It provides the common services like authentication, authorization, error control and follow of the application. This architecture have solved the most of the problems. But still there were many new issues emerged while applying this architecture.II. APPLYING ARCHITECTURE WITH MULTIPLE FRAMEWORKSWeb and Internet is ever growing area and the demands for the applications are growing. A single framework is not capable to handle the architecture of the application. To meet the currents requirement of the applications it’s necessary to design a architecture to implement the frameworks.Struts framework have been designed and developed for the front end control of the web applications. It provides the various features for the applications that interact to the users. It also follows the MVC 2 design features.Spring Framework is the designed to handle the various tasks. The spring work for the desktop and internet based applications also. It follows the principals of the MVC 2. The simultaneous use of the Struts and spring frameworks in the single application with the applying the MVC Design principals so that we can Improve the performance of the applications.Struts Framework consists of three major blocks, Described in brief as follows:First is The View Block which controls the presentation part of the complete model. This contains following JSP files which you write for your specific application Set of JSP custom tag libraries Resource filesfor internationalization.Second Block is representing the Controller. This is for navigation the complete application. This contains XML configuration files; it contains the tags for the navigation of the paths.Third Block is the Model. This part do the work of the Business Logic, Fetching and storing data to the database.This contains following Java Beans Enterprise Java Beans Database. Following figure shows the working of the components in the struts framework.MVC in StrutsThe major three parts of the MVC are as follows in the spring framework. Servlet controller (Controller Part) Java Server Pages or any other presentation technology (View Part) Application Business Logic: in the form of whatever suits the application (Model Part).SpringComponents.In the spring we also follows the principals of the MVC . It has been designed more for the desktop and internet based applications. Spring consist of three core collaborating components. 1. Controller: Handles navigation logic and interacts with the Service tier for business logic 2. Model: The contract between the Controller and the View Contains the data needed to render the View Populated by the Controller 3. View: Renders the response to the request Pulls data from the model.Core components in the spring MVC are as follows.DispatcherServlet: Spring’s Front Controller implemen tation. It is the first controller which interacts to the requests. We can also say it is an implementation of the Servlet. It controls the complete flow of the application.2. Controller: User created component for handling requests encapsulatesnavigation logic delegates to the service objects for business logic.3.View: Responsible for rendering output. Different views can be selected for the different types of output bases on the results and the viewing device, communication devices.4.ModelAndView: ModelAndView is the core part of the spring framework. It implements the business logic of the application. It is controlled by the controller. It stores the business logic and the view associated with it. Whenever it is executed it will the data with the name of the view.5. ViewResolver: How the output is to be displayed depends on the result received from ModelAndView. It is used to map logical view names to actual view implementations. This part identifies and implement what is the output media and how to display it.6. HandlerMapping: Strategy interface used by DispatcherServlet for mapping incoming requests to individual Controllers. It identifies the request and calls the respective handler to provide the services.The following figure shows how the model will work. In this the dispatcher Servlet is the entry point for the application. The Struts parts do it’s work and send the request to the dispatcher Servlet. The Servlet decides the handler. Then it will call to the controller. Controller will execute the ModelAndView.III. PROPOSED METHODOLOGYThis approach is based a combination of applying the two framework struts and spring for the application development. The sequence diagram for the combined application is explained as above, which is the main driving force for the application. This approach assumes that basic knowledge of web applications is essential. We have tested the above concepts and find out it successfully. Major benefits注:1. 指导教师对译文进行评阅时应注意以下几个方面:①翻译的外文文献与毕业设计(论文)的主题是否高度相关,并作为外文参考文献列入毕业设计(论文)的参考文献;②翻译的外文文献字数是否达到规定数量(3 000字以上);③译文语言是否准确、通顺、具有参考价值。

相关文档
最新文档