admin 管理员组文章数量: 1086019
2024年4月24日发(作者:整形常量的定义)
Web应用中英文对照外文翻译文献
Web应用中英文对照外文翻译文献
(文档含英文原文和中文翻译)
外文:
A Comparative Study of Web Application Design Models
Using the Java Technologies
Abstract.
The Servlet technology has been the most widely used technology for
building scalable Web applications. In the events, there are four design models for
developing Web applications using the Java technologies: Model 1, Model2, Struts,
and JavaServer Faces (JSF). Model 1 employs a series of JSP pages; Model 2
adopts the Model-View-Controller pattern; Struts is a framework employing the
Model 2 design model; and JSF is a new technology that supports ready-to-use
components for rapid Web application development. Model 1 is not recommended
for medium-sized and large applications as it introduces maintenance nightmare.
This paper compares and evaluates the ease of application development and the
Web应用中英文对照外文翻译文献
performance of the three design models (Model 2, Struts, and JSF) by building
three versions of an online store application using each of the three design models,
respectively.
1 Introduction
Today, Web applications are the most common applications for presenting
dynamic contents. There are a number of technologies for building Web
applications, the most popular of which is the Servlet technology . This technology
gains its popularity from its superiority over other technologies such as CGI and
PHP .Servlets are cumbersome to develop, however, because sending HTML tags
requires the programmer to compose them into a String object and send this object
to the browser. Also, a minor change to the output requires the servlet to be
recompiled. To address this issue, Sun Microsystems invented JavaServer Pages
(JSP) . JSP allows HTML tags to be intertwined with Java code and each page is
translated into a servlet. A JSP page is a servlet. However, compilation occurs
automatically when the page is first requested. As a result, changing the output
does not need recompilation. In addition, JSP enables the separation of
presentation from the business logic through the use of JavaBeans and custom tag
libraries. The norm now in developing Javabased Web applications is to use
servlets along with JavaServer Pages.
In the later development, there are a number of design models for building
servlet/JSP applications: Model 1, Model 2, Struts , and JSF . Model 1 and Model
2 were first mentioned in the early specifications of JSP. Model 1 strictly uses JSP
pages, with no servlets, and Model 2 uses the combination of both servlets and JSP
pages. The terms of Model 1 and Model 2 have been used ever since. Model 1 is
suitable for prototypes and very small applications, and Model 2 is the
recommended design model for medium sized and large applications.
As Model 2 gained more acceptances in the industry, an open source initiative
to build the Struts Framework was initiated. Struts perfects Model 2 by providing
the controller part of the Model-View-Controller of Model 2. In addition, Struts
provides better page navigation management and several custom tag libraries for
more rapid development. Despite its steep learning curve and the fact that it was
版权声明:本文标题:Web应用中英文对照外文翻译文献 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/b/1713931503a658287.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论