JSP 技术发展的历史外文翻译资料

 2022-08-27 10:25:15

外文原文

The technique development history of jsp

By:Kathy Sierra and Bert Bates

Source: Servletamp;JSP

The Java Server Pages( JSP) is a kind of according to web of the script plait distance technique, similar carries the script language of Java in the server of the Netscape company of server- side JavaScript( SSJS) and the Active Server Pages(ASP) of the Microsoft. JSP compares the SSJS and ASP to have better can expand sex, and it is no more exclusive than any factory or some one particular server of Web. Though the norm of JSP is to be draw up by the Sun company of, any factory can carry out the JSP on own system.

The After Sun release the JS P( the Java Server Pages) formally, the this kind of new Web application development technique very quickly caused the peoples concern. JSP provided a special development environment for the Web application that establishes the high dynamic state. According to the Sun parlance, the JSP can adapt to include the Apache WebServer, IIS4.0 on the market at inside of 85% server product.

This chapter will introduce the related knowledge of JSP and Databases, and JavaBean related contents, is all certainly rougher introduction among them basic contents, say perhaps to is a Guide only, if the reader needs the more detailed information, pleasing the book of consult the homologous JSP.

1.1 GENER ALIZE

The JSP(Java Server Pages) is from the company of Sun Microsystems initiate, the many companies the participate to the build up the together of the a kind the of dynamic the state web the page technique standard, the it have the it in the construction the of the dynamic state the web page the strong but the do not the especially of the function. JSP and the technique of ASP of the Microsoft is very alike. Both all provide the ability that mixes with a certain procedure code and is explain by the language engine to carry out the procedure code in the code of HTML. Underneath we are simple of carry on the introduction to it.

JSP pages are translated into servlets. So, fundamentally, any task JSP pages can perform could also be accomplished by servlets. However, this underlying equivalence does not mean that servlets and JSP pages are equally appropriate in all scenarios. The issue is not the power of the technology, it is the convenience, productivity, and maintainability of one or the other. After all, anything you can do on a particular computer platform in the Java programming language you could also do in assembly language. But it still matters which you choose.

JSP provides the following benefits over servlets alone:

bull; It is easier to write and maintain the HTML. Your static code is ordinary HTML: no extra backslashes, no double quotes, and no lurking Java syntax.

bull; You can use standard Web-site development tools. Even HTML tools that know nothing about JSP can be used because they simply ignore the JSP tags.

bull; You can divide up your development team. The Java programmers can work on the dynamic code. The Web developers can concentrate on the presentation layer. On large projects, this division is very important. Depending on the size of your team and the complexity of your project, you can enforce a weaker or stronger separation between the static HTML and the dynamic content.

Now, this discussion is not to say that you should stop using servlets and use only JSP instead. By no means. Almost all projects will use both. For some requests in your project, you will use servlets. For others, you will use JSP. For still others, you will combine them with the MVC architecture . You want the apGFDGpropriate tool for the job, and servlets, by themselves, do not complete your toolkit.

1.2 SOURCE OF JSP

The technique of JSP of the company of Sun, making the page of Web develop the personnel can use the HTML perhaps marking of XML to design to turn the end page with format. Use the perhaps small script future life of marking of JSP becomes the dynamic state on the page contents.( the contents changes according to the claim of)

The Java Servlet is a technical foundation of JSP, and the large Web applies the development of the procedure to need the Java Servlet to match with with the JSP and then can complete, this name of Servlet comes from the Applet, the local translation method of now is a lot of, this book in order not to misconstruction, decide the direct adoption Servlet but dont do any translation, if reader would like to, can call it as' small service procedure'. The Servlet is similar to traditional CGI, ISAPI, NSAPI etc. Web procedure development the function of the tool in fact, at use the Java Servlet hereafter, the customer need not use again the lowly method of CGI of efficiency, also need not use only the ability come to born page of Web of dynamic state in the method of API that a certain fixed Web server terrace circulate. Many servers of Web all support the Servlet, even not support the Servlet server of Web directly and can also pass the additional applied server and the mold pieces to support the Servlet. Receive benefit in the characteristic of the Java cross-platform, the Servlet is also a terrace irrelevant, actually, as long as match the norm of Java Servlet, the Servlet is complete to have nothing to do with terrace and is to have nothing to do with server of Web. Because the Java Servlet is internal to provide the service by the line distance, need not start a progress to the each claimses, and make use of the multi-threading mechanism can at the same time for several claim service, therefore the efficiency of Java Servlet is very high.

But the Java Servlet also is not to has no weakness, similar to traditional CGI, ISAPI, the NSAPI method, the Java Servlet is to make use of to output the HTML language sentence to carry out the dynamic state web page of, if develop the whole website wit

剩余内容已隐藏,支付完成后下载完整资料


外文翻译

JSP 技术发展的历史

由: Kathy Sierra 和伯特 · 贝茨

资料来源: Servlet amp; JSP

Java 服务器页面 (JSP) 是一种的 web 脚本编程技术,类似进行 Java 在网景公司的服务器端 JavaScript (SSJS) 和微软的 asp 服务器脚本语言。JSP 比较 SSJS 和ASP 要更好地可以扩大性别,并没有更多的独家比任何工厂或一些特定服务器的 Web。虽然 JSP 规范是由 Sun 公司的起草,任何工厂可以进行 jsp 技术的自成体系。

太阳释放 JS P (Java 服务器页) 正式之后, 这种新 Web 应用程序开发技术,非常迅速引起人们的关注。JSP 提供建立高动态的 Web 应用程序的特殊的发展环境。根据太阳的说法,JSP 可以适应包括 Apache web 服务器,IIS4.0 内 85%的服务器产品在市场上。

这一章将介绍 JSP 和数据库的相关的知识及 JavaBean 相关内容,是所有当然粗糙介绍其中基本内容,说可能是一种指引而已,如果读者需要更详细的信息,取悦咨询相应的 JSP 的书。

1.1 代阿利兹

JSP (Java 服务器页) 是从太阳微系统公司发起的公司,许多公司建立的共同参与一种动态状态 web 页技术标准,它有它在建设中的动态状态 web 页强但不特别的功能。JSP 和微软技术是 ASP 的非常相像。两个都提供与某一程序代码混合和解释由语言引擎进行中的 HTML 代码的程序代码的能力。下面我们是进行的简单简介。

JSP 页面被翻译成 servlet。所以,从根本上讲,任何任务 JSP 页可以执行也可以通过 servlet 来完成。然而,这个基本的等价性并不意味着 servlet 和 JSP 页面是同样适当的在所有的场景。问题不是技术的力量,它是方便、 效率和可维护性的这个或那个。毕竟,任何你可以在 Java 中的特定计算机平台上编程的语言,你也可以用汇编语言编写。但是,它仍然很重要你选择哪。

JSP 在 servlet 单独提供以下好处:

bull; 很容易编写和维护的 HTML。静态代码是普通的 HTML: 没有额外的反斜杠、 没有双引号和没有潜伏的 Java 语法。

bull; 您可以使用标准的 Web 站点的开发工具。甚至对 JSP 一无所知的 HTML 工具可以使用,因为他们完全无视于 JSP 标记。

bull; 你可以分割你的开发团队。Java 程序员可以在动态代码工作。Web 开发人员可以集中精力的表示层。在大型项目中,这种划分是非常重要的。根据您的团队的大小和您的项目的复杂性,可以强制使用静态 HTML 和动态内容之间的强还是更弱的分离。

现在,这种讨论并不是说你应该停止使用 servlet,改用只 JSP。通过任何手段。几乎所有的项目将使用这两者。对于一些请求在您的项目中,您将使用 servlet。对于其他人,您将使用 JSP。还有一些学生,你将结合他们的 MVC 体系结构。你对这份工作,想要 apGFDGpropriate 工具和 servlet,靠自己,不能完成您的工具包。

1.2 的 JSP 的来源

太阳公司的 JSP 技术,使 Web 页开发人员可以使用 HTML 也许标记的 XML 设计把最后一页的格式。使用 JSP 标记也许小脚本未来的生活变得动态页面内容。(根据的索赔内容的变化)

Java Servlet 是 JSP 技术基础和大型 Web 应用程序需要 Java Servlet 来搭配与JSP 的开发,然后可以完成、 Servlet 这个名字来自于小程序,现在当地的翻译方法是很多,这本书在为了避免误会,决定直接通过 Servlet 但不做任何翻译如果读者愿意,可以称之为'小服务程序'。Servlet 是类似于传统的 CGI、 ISAPI 等 NSAPI。Web程序开发功能工具的事实上,在使用 Java Servlet 以后,客户需要不再次使用的 CGI的效率低下的方法,也不需要的使用只有能力来到出生的某一固定的 Web 服务器平台分发的 API 方法动态的 Web 页。多个服务器的 Web 所有支持 Servlet 甚至不直接支持 Web 的 Servlet 服务器,还可以传递额外的应用的服务器和模片支持 Servlet。得益于 Java 的跨平台的特点,Servlet 也是一个平台无关,其实,只要匹配的 JavaServlet,Servlet 规范是完整的与平台无关,而是希望与 Web 服务器无关。因为Java Servlet 是内部提供线距离的服务,需要不是开始向每个 claimses,取得的进展,使利用多线程机制可以在同一时间内,几个索赔服务,因此 Java Servlet 的效率是很高。

但 Java Servlet 也不是没有弱点,类似于传统 CGI、 ISAPI NSAPI 方法,JavaServlet 是使输出 HTML 语言句子进行动态 web 页的如果使用开发 Java Servlet 的整个网站,一体化进程的动态部分和静态页面简直是噩梦。为了解决这种弱点的 JavaServlet,SUN 发布了 JSP。

数年以前,马蒂被邀请参加在软件技术上的小 20 人产业圆桌讨论。坐在旁边马蒂的座位是 James 高斯林,Java 编程语言的发明者。坐在走了几个议席是从华盛顿州雷蒙德市的非常大的软件公司的高级经理。在讨论中,主持人提起 Jini,这在当时是一种新的 Java 技术。主持人问经理,他的想法,和经理回应这是为时过早,但它似乎是一个好主意。他去说他们会看着它,如果它似乎越来越流行,他们会跟随他的公司通常'拥抱和扩展'战略。在这一点上,高斯林自由自在插话说'你被说荣辱、 扩张'。

现在,播出的小鹅的不满是因为他认为这家公司会从其他公司以技术和收买它为达到自己的目的。但你猜怎么着?鞋子却是在另一只脚在这里。Java 社区并没有发明设计页面作为静态 HTML 和动态代码标有特殊标记的混合物的想法。例如,冷聚变做到年前。甚至 ASP (从上述经理非常软件公司的产品) 推广这种方法之前 JSP 走过来,决定跳上彩车。事实上,JSP 不仅采用一般的想法,它甚至用了很多相同的特殊标记 ASP一样。

JSP 是建立在 Java servlet 模型上的表达层技术,它使编编写 HTML 能够变得更简单。是像 SSJS,它还允许你进行静态 HTML 内容和服务器脚本混合放在一起生成的动态输出。JSP 的脚本语言,Java 的默许,然而,是喜欢 ASP,可以使用其他语言 (如JavaScript 和 VBScript) 的 JSP 规范还允许使用其他语言。

1.3JSP 特点

是根据一些一种语言的这种讨论,JSP 子系统的脚本语言的服务都应该看到加上,是一种脚本语言。然而,一种脚本语言,JSP 似乎要再做太强,几乎可以使用所有因为在JSP 中。

是一种根据最初的作为中央发展技术,以表现的文字 JSP 提供所有优点的 JavaServlet,和,当结合 JavaBeans 在一起,提供一种使内容和表现形式这种简单的方式这种逻辑分开。分离内容和逻辑表现形式的优势是,更新页面外观需要的人员不知道的Java 代码和续订的 JavaBeans 人员也不需要设计专家该 web 页在手,可以用来以JavaBeans JSP 来定义模板的网站,来建立的页面从有相似外观的网站页面构成。JavaBeans 完成数据提供,因此在模板中有任何的 Java 代码,这意味着这些模板可以通过 HTML 编程,以支持编写人员。当然,还可以使用 Java Servlet 来控制网站的逻辑,调整通过 Java Servlet 可以使用 JSP 文件的方式来分隔的逻辑和内容的网站。

一般来说,在实际发动机中的 JSP,JSP 页是编辑和翻译类型而携带出来的不能解释的类型。解释在类型如 ASP,PHP3 等的动态 web 页开发工具,因为速度等原因,已经不能满足当前大型电子商务需求应用中,传统的开发技术也都在编辑和翻译执行方式的变化,如 ASP → ASP ;PHP3 → PHP4。

在 JSP 规范书中,没有请求的 JSP 代码部分中的步骤 (被称为 Scriptlet) 必须用Java 写下肯定。其实,有一些的 JSP 引擎是领养其他脚本语言 (如 EMAC-脚本等,但实际上这几个脚本语言也可以在 Java 上设置、 编辑和翻译的 Servlet 来实现。按照 JSP 规范写,没有任何关系与 Java Scriptlet 也可以的不过,主要在于能力和JavaBeans,JSP 强大功能企业 JavaBeanses,共同努力,甚至是 Scriptlet 部分不可以使用 Java、 编辑和翻译的性能代码也应该与有关 Java。

1.4JSP 机制

了解 JSP,如何团结以上各种发言的技术优势,来轻松地进行各种结果,客户必须了解的分化'了分模块开发为中心的 web 页'和'页面开发为中心的 web 页'第一次。

SSJS 和 ASP 是都在几年前,释放,那段时间的网络是还很年轻,没有人知道还有没有另外制作所有行业,数据和表达式逻辑输入原始 web 页完全堆什么更好的解决方法。这种以页面为中心研究和容易获得较快发展的模式。然而,随着时间的推移,人们知道这种方法在建立大型不适,可以升级 Web 应用程序。表达式逻辑写入脚本环境中的被锁定在页中的,唯一通过切片和胶水粘到剪切然后可以带动大量使用。

表达通常混合使用业务逻辑和数据逻辑,当这使程序成员来试图改变外观,应用程序,但不是想打破使用 llied 的业务逻辑,应用维护的程序会像在蛋壳上行走的类似的困难。事实上在商业企业中,大量使用应用程序的模块已经通过很成熟,没有人想要改写那些为他们的应用程序的逻辑。HTML 和素描设计器移交给他们设计的实施工作 Web 编一个人写道,使他们不得不加倍工作通常是工艺品辫子来写,因为没有合适的工具,可以执行脚本和 HTML 内容结到服务器放在一起。简但演讲,应用 Web 不断促进发展方法和过程的复杂性,采取页作为中心极限性爱变得明显起来。

同时,人们总是在寻找更好的方法,建立了 Web 应用程序,该模块传播在客户机 / 服务器领域。JavaBeans 和 ActiveX 刊登公司将扩大,应用程序开发人员用于 Java 和Windows 用来快速的发展的复杂的过程'快速应用程序开发'(RAD) 工具。这些技术使得在一些领域专家能够写为垂直应用编程模块在技能领域,但开发人员可以直接获取使用但不是需要控制这一领域的专门知识。

是一种以模块作为中央发展平台,JSP 出现。它与 JavaBeans 和企业 JavaBeans (EJB) 模块包括业务和数据逻辑为基础的模型,提供了大量的标签和脚本梯田,用来显示在 HTML 中来自 JavaBeans 创作的内容页或送一份礼物作为回报。由于该模块作为中心的 JSP 属性,它可以驱动 Java 并不的 Java 开发人员使用同样。不的 Java开发人员可以通过 JSP 标签 (标签) 使用豪华的 Java 开发人员建立JavaBeans。Java 开发人员不仅可以建立并使用 JavaBeans,但是也可以使用 Java 语言来更精确地控制在 JSP 页面内按照第一层 JavaBeans 的表达式逻辑。

看到现在如何 JSP 是 HTTP 处理索赔。在基本要求模型中,索赔直接被发送到 JSP 页面中。JSP 代码控件来进行小时的逻辑处理和模块 JavaBeanses 的手在一起,并且表现导致动态状态 bornly,掺入静态 HTML 代码的 HTML 页面。豆子可以 JavaBeans 或Ejb 模块。此外,更复杂的索赔模型可以看到从使请求其他 JSP 页面的页面调用符号或 Java Servlet。

JSP 引擎想要追逐的 Java JSP 的标签,Java 中甚至是所有的 JSP 页面的代码转换成了好大一块与静态 HTML 内容实际上代码。这些代码片断被举办 Java Servlet,顾客不能看到由 JSP 引擎去 Servlet 编辑然后自动翻译的 Java 字节码。

因而,贵宾是网站请求不知道一个 JSP 页面,它的条件下,已经出生,Servlet 实际全面准备编辑和翻译完成了所有工作,非常隐蔽而又高效。Servlet 是编辑和翻译的所以 JSP web 页中的代码不需要在每次请求该页面解释时。可以进行的 JSP 需要被编辑和翻译后 Servlet 代码结束只有一次,修改然后这个 Servlet,编辑和翻译引擎。

鉴于事实 JSP 引擎汽车天生的编辑和翻译的 Servlet 也,需要不是手术成员开始编辑和翻译的代码,所以 JSP 可以带来生动的性功能和快速的发展需要你是有效地。

JSP 与传统 CGI 相比,具有相当的优势。首先,对速度,传统的 CGI 程序需要使用系统的标准输入输出设备进行动态 web 页出生,但 JSP 直接相互是与服务器的连接。说为 CGI,每个面试需要来添加处理的进展和进步建立和销毁通过不断地燃烧,将计算器的一个不小的负担是 Web 服务器。顺序下,JSP 专门为的 Web 开发而设计,其目的是为建立 Web 应用程序,包括规范和工具的整个集。使用 JSP 技术可以结合使用 JSP页面成为 Web 应用程序非常方便很多。

基本的介绍,导入在 JSP 中的类

2014 年 6 月 19 日由 NETRA_DIXIT

可重用的组件或库是软件的良好最重要的特征之一。图书馆,一旦创建,减少开发时间为将来的项目。在 JSP 页面中使用现有类的关键技术之一是通过使用导入指令。有很多现有的 Java

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[499542],资料为PDF文档或Word文档,PDF文档可免费转换为Word

原文和译文剩余内容已隐藏,您需要先支付 30元 才能查看原文和译文全部内容!立即支付

以上是毕业论文外文翻译,课题毕业论文、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。