电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

MVC设计模式介绍毕业论文外文翻译

5页
  • 卖家[上传人]:pu****.1
  • 文档编号:431203889
  • 上传时间:2024-02-02
  • 文档格式:DOC
  • 文档大小:35.02KB
  • / 5 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1、 技术简介1. MVC设计模式介绍MVC模式是“Model-View-controller”的缩写,中文翻译为“模式-试图-控制器”。MVC应用程序总是由这三个部分组成。Event导致Controller改变Model或View,或者同时改变两者。只要Controller改变了Models的数据或者属性,所有依赖的View都会自动更新。类似的,重要Controller改变了View,View会从潜在的Model中获取数据来刷新自己。MVC模式最早是smalltalk语言研究团提出的,应用于交互应用程序中。Java语言是面向对象语言,很自然的SUN在应用程序事例中就推荐MVC模式作为开发Web应用的架构模式。MVC模式是一种架构模式,其实需要其他模式协作完成。在J2EE模式目录中,通常采用service to worker模式是新,而service to worker模式可由集中控制器模式,派遣器模式和Page Helper模式组成。2. Struts2简介虽然Struts2号称是一个全新的框架,但这仅仅是相对Struts1而言。Struts2与Struts1相比,确实有很多革命性的改进

      2、,但它并不是新发布的新框架。从某种程度上来讲,Struts2没有继承Struts1的血统,而是继承WebWork的血统。Struts2是WebWork的升级,而不是一个全新的框架,因此稳定性、性能等各方面都有很好的保证:而且吸收了Struts1和WebWork两者的优势。Struts2 Action类可以实现一个Action接口,也可实现其他接口,使可选和定制的服务成为可能。Struts2提供一个ActionSupport基类去实现 常用的接口。Action接口不是必须的,任何有execute标识的POJO对象都可以用作Struts2的Action对象。Struts2 Action对象为每一个请求产生一个实例,因此没有线程安全问题。实际上,servlet容器给每个请求产生许多可丢弃的对象,并且不会导致性能和垃圾回收问题。Struts2 Action可以通过初始化、设置属性、调用方法来测试,“依赖注入”支持也使测试更容易。Struts2直接使用Action属性作为输入属性,消除了对第二个输入对象的需求。输入属性可能是有自己(子)属性的rich对象类型。Action属性能够通过web页面上

      3、的taglibs访问。Struts2也支持ActionForm模式。rich对象类型,包括业务对象,能够用作输入/输出对象。这种ModelDriven特性简化了taglib对POJO输入对象的引用。Struts2可以使用JSTL,但是也支持一个更强大和灵活的表达式语言“Object Graph Notation Language”(OGNL)。Struts2使用 “ValueStack”技术,使taglib能够访问值而不需要把你的页面(view)和对象绑定起来。ValueStack策略允许通过一系列名称相同但类型不同的属性重用页面(view)。Struts2使用OGNL进行类型转换。提供基本和常用对象的转换器。附录2Technical Overview1. MVC design pattern descriptionMVC pattern is Model-View-controller of the acronym, the Chinese translation for mode - trying to - Controller. MVC applications are alwa

      4、ys by these three components. Event (events) result in Model or Controller to change the View, or to change both at the same time. Models change as long as the Controller of the data or attributes, all depend on View is updated automatically. Similarly, the important Controller changed the View, View of the Model from the potential to obtain data to refresh themselves. MVC pattern was first made smalltalk language research group applied to interactive applications. Java language is object-orient

      5、ed language, it is natural that in the application instances SUN recommending MVC model as a framework for developing Web application model. MVC model is an architectural pattern, in fact, other models need to be completed in collaboration. In the J2EE pattern catalog are commonly used service to worker pattern is new, and the service to worker pattern may be focused on control mode, sending mode and the Page Helper pattern.2. Struts2 IntroductionAlthough the claims is a new Struts2 framework, b

      6、ut it is only in terms of relative Struts1. Struts2 with Struts1 than there are indeed many revolutionary improvements, but it is not a new release of the new framework, but in another prominent framework: WebWork developed on the basis of the. To some extent, Struts2 does not inherit Struts1s ancestry, but the succession WebWork lineage. Struts2 is the WebWork upgrade, rather than an entirely new framework, therefore the stability, performance and other areas have a very good assurance: it abso

      7、rbed the advantages of both Struts1 and WebWork, therefore, is a very worth the wait framework.Struts2 Action class can implement an Action interface and other interfaces can also be achieved to enable optional and custom services possible. Struts2 provides a ActionSupport to achieve common base class interface. Action interface is not necessary, any POJO object execute identity can be used as an object Struts2 in Action. Struts2 Action object for each instance of a request to generate a, there

      8、is no thread-safety problems. (In fact, servlet containers generate many for each request can be discarded objects, and will not lead to performance and garbage collection issues). Struts2 Action does not depend on the container, allowing Action out of the container to be tested separately. If necessary, Struts2 Action can still access the original Request and Response, however, other elements to reduce or eliminate direct access to HttpServetRequest and HttpServletResponse necessary. Struts2 Ac

      9、tion can be initialized, set properties, call methods to test, dependency injection support also makes testing easier. Struts2 using the Action attribute directly as input properties, eliminating the need for the second input object needs. Input properties may have their own (sub) attribute the rich object type. Action properties able to access web pages on the taglibs. Struts2 also supports the ActionForm pattern. rich object types, including business objects, can be used as input / output objects. This ModelDriven feature simplifies the taglib reference to the POJO input objects.1

      《MVC设计模式介绍毕业论文外文翻译》由会员pu****.1分享,可在线阅读,更多相关《MVC设计模式介绍毕业论文外文翻译》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    信息化课堂中的合作学习结业作业七年级语文 发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2 2022年小学体育教师学期工作总结
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.