《Fortran语言程序设计》在线考试系统设计与实现外文翻译资料

 2022-12-02 19:53:35

附录:外文参考文献及翻译

THE DEVELOPMENT OF JSP

Kathy Sierra and Bert Bates, 2015

The Java server page (JSP) is a script based on the web programming technology, similar to Netscape server-side Java scripting language - SSJS and Microsoft Active Server Pages (ASP).Compared with SSJS and ASP, JSP has better scalability, and does not have any factory with a specific dedicated Web server. Although the JSP specification is drafted by Sun, any factory can perform JSP on its own system.

Introduction

The After Sun release the JSP (Java Server Pages) formally, the 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 Web Server, 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.

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 appropriate tool for the job, and servlets, by themselves, do not complete your toolkit.

Source of JSP

Suns JSP technology allows web developers to design a page with HTML or XML tags. Future life as a page content using JSP tags.

Java Servlet is the foundation of the JSP technology, and the development of large-scale Web applications to Java Servlet and JSP to complete, the name Servlet comes from a small program, now the domestic translation in many ways, this book in order not to misunderstand, decided directly by Servlet but do any translation, if the reader like, can be used as 'small service the program calls it'. Servlet is similar to traditional CGI, ISAPI, NSAPI and Web application development tools in fact function, after using java Servlet, users do not need to use the low efficiency of CGI, also do not need to use API method to dynamically generated Web pages: a fixed Web server platform. Many of the Web servers support Servlet, and even do not directly support the Web Servlet server, can also be supported by additional application servers and modules to support servlet. In the Java cross platform characteristics benefit, Servlet is also platform independent, in fact, as long as the compliance with the java servlet specification, Servlet is completely unrelated to the terrace and unrelated to the Web server. Because Java Servlet is provided by the internal line distance service, every request without starting a process, and make use of the threading mechanism can also request for multiple services at the same time, so Java Servlet efficiency is very high.

But java servlet is not without shortcomings, and traditional CGI, ISAPI, NSAPI, java servlet is to realize the dynamic web development using the output of the HTML statement, if the dynamic part of the website of java servlet integration process and static page is a nightmare. To solve this kind of weakness of the java servlet, the sun releases the JSP.

A few years ago, Marty was invited to participate in a roundtable on software technology for the small two industry roundtable. The man sitting next to Marty is James Lin, inventor of the Java programming language (). Across several locations, Redmond is a senior manager from a very large software company, Washington. In the course of the discussion, the moderator put forward the main body of Jini, which was a new Java technology. The manager asked the manager what he thought, and the manager said it was too early, but it seemed like a good idea. He went on to say that they would pay attention to it, and if it seemed to be catching up, they would follow his companys usual 'embrace and expansion' strategy. At this point, Gosling casually inserts 'you are a disgrace and expansion.'

Now, Gosling will be aggrieved that he felt that the company will take away from other companies for their own purposes. But guess what? The shoe is on the other foot. The Java community did not invent this idea page designed for hybrid HTML static and dynamic code with special tags. For example, cold poly

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


JSP发展史

Kathy Sierra and Bert Bates, 2015发表

Java服务器页面(JSP)是一种根据脚本的web编程技术,类似于网景公司的服务器端的Java脚本语言——SSJS和微软的Active Server Pages(ASP)。JSP与SSJS和ASP相比,其扩展性更好,而且没有任何工厂拥有一个特定的专属Web服务器。虽然JSP的规范是由Sun公司起草的,但任何工厂可以在自己的系统上执行JSP。

简介

JSP(Java Server Pages)是由Sun公司的发起、许多公司共同建立的一种动态的web页面技术标准,在web页面的开发中不但强大而且有特别的功能。JSP和微软的ASP技术非常相似。两者都是在HTML的代码中穿插脚本,再由语言引擎解释索要执行的代码。下面我们将简单的进行介绍。

本章将介绍JSP和数据库的相关知识,以及JavaBean相关的内容,当然都是其中比较粗糙的介绍的基本内容,或者说只是为了指导,如果读者需要更详细的信息,请参考JSP的书籍。

在最终J的SP页面转换为servlet。所以,从根本上讲,JSP页面可以执行的任何任务,也可以通过servlet来实现的。然而,这种潜在的等价并不意味着servlet和JSP页面也同样适用于所有场景。问题不在于技术的力量,而是它们之间存在的便利性、高效性和可维护性的不同。毕竟,任何一个特定的计算机平台上你可以做Java编程语言,汇编语言也可以做。但对于我们来说选择哪个语言尤为重要。

和servlet相比,JSP提供了以下好处:

JSP中的HTML更容易编写和维护。在JSP中可以编写常规的HTML标签代码:没有额外的反斜杠,没有双引号,没有暗含的Java语法。

您可以使用标准的网站开发工具。甚至可以使用HTML工具,而这些工具对JSP一无所知,因为他们只是忽略了JSP标签。

你可以划分你的开发团队。Java程序员可以专攻动态代码。Web开发人员可以专注于表示层。在大型项目中,这个划分是非常重要的。根据您的团队的大小和您的项目的复杂性,可以对JSP和HTML进行弱分离和强分离。

但这个讨论并不是说你应该停止使用servlet而只使用JSP。事实上,几乎所有的项目都会同时使用这两种技术。对于您的项目中一些请求,更适宜使用servlet。而在一些项目中的某些请求,我们通常会在MVC的架构下对这两种及数进行选择性使用。开发者们通常都会希望用适当的工具完成特定的任务,因为servlet并不总能胜任所有的工作。

JSP的出处

Sun公司的JSP技术,使得网页开发人员可以用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也是平台无关的,实际上,只要符合java servlet规范,Servlet是完全无关的露台和无关的Web服务器。因为java Servlet是由线的距离提供服务的内部,不需要启动一个进程的每一个要求,并且利用多线程机制可以同时为多个请求服务的同时,因此java Servlet效率非常高。

但java servlet也不是没有缺点,和传统的CGI、ISAPI、NSAPI方法,java servlet是利用输出HTML语句来实现动态网页的开发,如果用java servlet整个网站的动态部分的整合过程和静态页面简直是一场噩梦。为解决这类的java servlet的弱点,太阳释放的JSP。

几年前,马蒂应邀参加了一个关于软件技术的小型的两人行业圆桌讨论会。坐在马蒂旁边的人是詹姆斯bull;高斯林,对java编程语言的发明者。隔几个位置,是Redmond的一个高级经理从一个非常大的软件公司,华盛顿。在讨论过程中,主持人提出了Jini的主体,这在当时是一个新的java技术。主持人问经理他是怎么想的,经理回答说现在还为时过早,但这似乎是个好主意。他接着说,他们会留意它,如果它似乎是赶上,他们将按照他的公司通常的“拥抱和扩展”战略。在这一点上,Gosling随意地插“你是耻辱和扩张。”

现在,委屈的戈斯林将是他觉得这家公司会从其他公司那里拿走技术,用于他们自己的目的。但是你猜怎么着?鞋子在另一只脚上。java社区没有发明这一思想页面设计为混合HTML静态和动态代码标明特殊标签。例如,冷聚变早在几年前。即使ASP(一个产品从非常软件公司的上述经理)推广这种方法之前,JSP来了,并决定跳上潮流。事实上,JSP不仅采用了一般的思想,它还使用了许多与ASP一样的特殊标签。

JSP是建立在java servlet模型的表示层技术,它使植物写HTML变得简单。像SSJS一样,它也允许你将静态HTML内容和服务器端脚本混合起来生成动态输出。JSP脚本语言,java是默许的,但是,像ASP,可以使用其他语言(JavaScript和VBScript),JSP规范也允许使用其他语言。(如JavaScript和VBScript),JSP规范也允许使用其他语言

JSP的特点

JSP是一种服务,根据某一个子系统的语言这种讨论的脚本语言,JSP应该被看作是一种脚本语言。然而,作为一种脚本语言,JSP似乎太强大了,在JSP中几乎可以使用所有的Java。

JSP是一种基于文本的、以显示为中心的开发技术,JSP提供的java servlet,所有的优点,当与JavaBeans结合在一起,提供了一种使内容和显示逻辑分开的简单方式。独立的内容和显示逻辑的好处是,在更新页面外观的人员不需要知道java代码,并更新JavaBeans类的人员也不需要设计网页的行家里手,可以使用带JavaBeans类的JSP页面来定义Web模板,建立一个网站的形式有相似的外观的页面组成。JavaBeans完成数据提供,没有代码java这样在模板中,这意味着这些模板可以由一个HTML编写人员支持。当然,也可以利用java Servlet来控制网站的逻辑,通过java servlet使用JSP文件的方式把网站的逻辑和内容。

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

在规范的JSP书,没有JSP中的程序代码部分请求(称为脚本),必须用java肯定。事实上,有一些JSP引擎采用的其他脚本语言,如编辑脚本,等等,但实际上这几种脚本语言也是在java设置,编辑和Servlet进行翻译。根据JSP规范写的,没有任何关系的Script和java也是可以的,但是,主要在于能力和JavaBean,EJB由于JSP的强大功能一起工作,所以即使是Script部分不使用java,编辑成的执行代码也应该是与java。

要了解JSP如何结合上述各种各样的技术优势,来轻松地执行各种结果,客户必须了解“模块为中心的网页开发”和“页面为中心的网页开发”的区别。

4.JSP的机制

SSJS和ASP都是在几年前推出的,那时网络还很年轻,没有人知道还有除了把所有的业务数据和表达逻辑统统堆进原始网页有什么更好的解决方法。这种以页面为中心的学习模式,很容易得到很快的发展。然而,随着时代的变迁,人们知道这种方法在设置上不适应,可以升级的web应用程序。在脚本环境中编写的表达式逻辑被锁定在页面中,只有通过剪切切片和粘贴才能驱动重载使用。表达逻辑通常混合在一起,与业务和数据逻辑,这使得当程序员试图改变一个应用程序的外观而不想破坏与撒谎的业务逻辑,应用程序的维护是怎样的艰难。

与传统CGI相比,JSP具有同等的优势。首先,在速度上,CGI的传统程序需要使用系统的标准输入输出设备来实现动态网页的生成,而JSP是直接与服务器相互连接的。而对于CGI来说,每一次采访都需要加上进度来处理,进度不断地被不断的破坏和破坏,将是Web服务器的一个不小的负担。其次,JSP是专门为Web开发而设计的,其目的是建立基于Web的应用程序,包含了整套的规范和工具。使用JSP技术可以很方便地将很多JSP页面组合成一个web应用程序。

5.Struts功能简介

Struts是一个MVC框架(Framework),使用java快速开发Web应用程序。Struts的实现的关键点就在于C(即控制器)、还包括我们创建的Action类和我们定制的Action Servlet / Request Processor,同时struts还为V(视图)提供了一系列行有定制标签(Custom Tags)。Spring是一种轻型容器(light-weight),其核心是Bean层,建造我们所需要M(模型),我们需要。在此基础上,弹簧提供了AOP(面向方面编程,面对层面规划)的实现,提供了非管理环境下它申报服务等业务,安全;是bean工厂扩展更方便Application Context我们实现J2EE应用;DAO/ ORM实现有利于我们进行数据库开发;Web MVC和Web提供了java的web应用框架或进行与其他的流行的Web框架的整合。即可以既使用,又实现各自的特点进行补充。

Struts其实就是一组结构上相互协作的servlet和JSP标记,它们构成了MVC 2设计的可重用。这个定义表示Struts是一个框架,但不是一个库,但Struts也包含了丰富的标记库和独立于这个框架的实用程序类。

客户端浏览器(客户浏览器),请求从客户浏览器的每个HTTP创建事件。网络容器将使用HTTP响应做出响应。

控制器(Controller),控制器从浏览器的请求接收,并决定发送到这个请求。对于Struts来说,控制器是一个通过Servlet实现的顺序设计模式。struts-config.xml文件配置控制器。

业务逻辑,业务逻辑更新模型的条件,并帮助控制应用程序的流程。说到Struts,这是通过实际服务逻辑“thin”的包装动作类来完成的。

模型(Model)条件,模型表达应用程序条件。服务对象更新应用程序条件。Action Form Bean会话水平或要求表达模型的条件,但不在持久层。JSP文件使用JSP标记读取Action Form bean的信息。

视图(View),视图是JSP文档。而且没有过程逻辑,没有服务逻辑,也没有模型信息--只有标志。标记导致Struts与其他框架不同的一个因素(例如速度)。

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


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

您需要先支付 30元 才能查看全部内容!立即支付

发小红书推广免费获取该资料资格。点击链接进入获取推广文案即可: Ai一键组稿 | 降AI率 | 降重复率 | 论文一键排版