菜单
  
    About the Model 2 Versus Model 1 Architecture  Early web application design regarded the JSP page as the focal point for the entire application. Termed Model 1 architecture, the JSP page not only contains the display elements to output HTML, but is also responsible for extracting HTTP request parameters, call the business logic (implemented in JavaBeans, if not directly in the JSP), and handle the HTTP session. Although Model 1 is suitable for simple applications, this architecture usually leads to a significant amount of scriptlets (Java code embedded within HTML code in the JSP page), especially if there is a significant amount of request processing to be performed.37912
     As a response to the Model 1 architecture, Apache Software Organization developed the Jakarta Project's Struts framework. Struts is an open source framework for building web applications that integrate with standard technologies, such as Java Servlets, JavaBeans, and JSP. Struts offers many benefits to the web application developer, including Model 2 implementation of Model-View-Controller (MVC) design patterns in JSP web applications. The MVC Model 2 paradigm applied to web applications lets you separate display code (for example, HTML and tag libraries) from flow control logic (Struts action classes).
     The following information gives a brief overview of the MVC Model 2 design pattern and the role of Oracle ADF:
     The Model portion of an MVC-based system typically comprises JavaBean classes that define the internal state of the system; they also specify the actions that can be taken to change that state.
     When you create your web application using the Oracle Application Development Framework (Oracle ADF), binding to the model layer is handled for you. Otherwise, you will need to create the data binding implementation for the view layer. For additional information about Oracle ADF, see About the J2EE Platform and Oracle ADF.
     The View portion is constructed using JSP technology or Oracle ADF UIX technology. JSP pages can contain static HTML (or XML) text called "template text", plus the ability to insert dynamic content based on the interpretation (at page request time) of special action tags. The JSP environment includes a set of custom JSP tag libraries (such as the Struts tag libraries), standard JSP action tags (such as those described in the JavaServer Pages Specification), and a facility to install your own JSP custom tag libraries.
     When you use the Oracle Application Development Framework (Oracle ADF), you can take advantage of the data binding facilities in JDeveloper that allow your web pages to display databound dynamic content from the model layer. For complete information about the data controls in JDeveloper, see About Oracle ADF Data Controls.
     The Controller portion of the application is focused on receiving requests from the client (typically a user running a web browser), deciding what business logic function is to be performed, and then delegating responsibility for producing the next phase of the user interface to an appropriate View component. In Struts, the primary components of the Controller is a servlet of class ActionServlet and the class RequestProcessor.
    B.原文的翻译
    模型2和模型1的体系结构
     早期的Web应用程序的设计以JSP页面作为整个应用的重点。称为模型1的JSP页面结构,不仅包含显示单元输出HTML,但也负责HTTP请求参数提取,调用业务逻辑(实现在JavaBeans,如果不是直接在JSP),并处理HTTP会话。虽然模型1适用于简单的应用程序,该架构通常导致scriptlets(Java代码中大量嵌入在HTML代码中的JSP页面),特别是如果有要进行一个显着的请求处理量。论文网
    在模式1体系结构的响应,Apache软件组织开发的Jakarta项目的Struts框架。Struts是一种用于构建Web应用程序的集成与标准技术的开源框架,如Java Servlets,JavaBeans和JSP。Struts提供了许多好处的Web应用程序开发人员,包括模型视图控制器(MVC)实现模型2在JSP Web应用程序的设计模式。MVC模型2范式应用到Web应用程序让你单独显示的代码(例如,HTML标签库)从流程控制逻辑(Action类)。
  1. 上一篇:Java servlets英文文献和中文翻译
  2. 下一篇:单桩海上风力发电机英文文献和中文翻译
  1. 自升式平台锁定装置英文文献和中文翻译

  2. 麦克纳姆轮的机器人移动...

  3. J2EE开源技术应用英文文献和中文翻译

  4. Struts MVC一种开放源码英文文献和中文翻译

  5. MVC设计模式和Spring,Stru...

  6. MVC设计模式英文文献和中文翻译

  7. 机器人平台英文文献和中文翻译

  8. 高警觉工作人群的元情绪...

  9. 巴金《激流三部曲》高觉新的悲剧命运

  10. 上市公司股权结构对经营绩效的影响研究

  11. 中国传统元素在游戏角色...

  12. C++最短路径算法研究和程序设计

  13. 江苏省某高中学生体质现状的调查研究

  14. 现代简约美式风格在室内家装中的运用

  15. 浅析中国古代宗法制度

  16. NFC协议物理层的软件实现+文献综述

  17. g-C3N4光催化剂的制备和光催化性能研究

  

About

优尔论文网手机版...

主页:http://www.youerw.com

关闭返回