毕业论文

打赏
当前位置: 毕业论文 > 外文文献翻译 >

J2EE平台MVC模型英文文献和中文翻译

时间:2019-08-03 20:39来源:毕业论文
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,

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. 源-自*六'维:论.文]网[www.lwfree.cn
 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类)。 J2EE平台MVC模型英文文献和中文翻译:http://www.lwfree.cn/fanyi/20190803/36789.html
------分隔线----------------------------
推荐内容