文档库 最新最全的文档下载
当前位置:文档库 › JSP技术 ---外文文献

JSP技术 ---外文文献

JSP技术 ---外文文献
JSP技术 ---外文文献

外文文献

JSP Technology and Servlets

JSP profile

JSP (JavaServer Pages) is initiated by Sun Microsystems, Inc., with many co mpanies to participate in the establishment of a dynamic web page technical standa rds. JSP technology somewhat similar to ASP technology, it is in the traditional H TML web page document (*. htm, *. html) to insert the Java programming paragra ph (Scriptlet) and JSP tag (tag), thus JSP documents (*. jsp). Using JSP developme nt of the Web application is cross that can run on Linux, is also available for other operating systems.

JSP technology to use the Java programming language prepared by the catego ry of XML tags and scriptlets, to produce dynamic pages package processing logic. Page also visit by tags and scriptlets exist in the services side of the resources of lo gic. JSP page logic and web page design and display separation, support reusable c omponent-based design, Web-based application development is rapid and easy.

Web server in the face of visits JSP page request, the first implementation of t he procedures of, and then together with the results of the implementation of JSP d ocuments in HTML code with the return to the customer. Insert the Java programm ing operation of the database can be reoriented websites, in order to achieve the est ablishment of dynamic pages needed to function.JSP and Java Servlet, is in the im plementation of the server, usually returned to the client is an HTML text, as long as the client browser will be able to visit.

JSP 1.0 specification of the final version is launched in September 1999, Dece mber has introduced 1.1 specifications. At present relatively new is JSP1.2 norms, JSP2.0 norms of the draft has also been introduced.JSP pages from HTML code an d Java code embedded in one of the components.

JS script language synopsis

JS is javascrip, Javascript is one kind the script language which comes by the Netscape LiveScript development, the main purpose is to solve the server terminal language, for instance Perl, carry-

over speed question. At that time served the end to need to carry on the confirmatio n to the data, because the network speed was quite slow, only then 28.8kbps, the co

nfirmation step waste's time were too many. Therefore Netscape browser Navigato r has joined Javascript, has provided the data confirmation basic function.

The JavaScript official name is “ECMAScript”. This standard by ECMA orga nization development and maintenance. ECMA262 is the official JavaScript standa rd. This standard based on JavaScript (Netscape) and JScript (Microsoft). Netscape (Navigator 2.0) Brendan Eich has invented this language, started from 1996, alrea dy appeared in all Netscape and in the Microsoft browser. The ECMA262 develop ment began in 1996, in 1997 July, the ECMA general meeting has accepted its first edition.

The script uses one specific descriptive language, rests on certain form compil ation to be possible the execution document, is also called as great or the batch run document. The script usually may transfer temporarily by the application procedur e and carry out. Each kind of script present widely is applied in the homepage desi gn, because the script not only may reduce the homepage the scale and raises the h omepage browsing speed, moreover may enrich the homepage performance, like a nimation, sound and so on. Cites a most common example, when we click in the ho mepage the Email address can transfer Outlook Express or the Foxmail this kind of mail software automatically, is realizes through the script function. Also because o f script these characteristics, the human who harbors ulterior motives by some are often using. For example joins some destruction computer system's order in the scr ipt, like this works as the user browsing homepage, once transfers this kind of scrip t, will then cause the user the system to come under the attack. Therefore the user s hould act according to visits homepage the trust degree selective security rank, spe cially regarding these itself content on the illegal homepage, do not permit the use script easily. Through “the safe establishment” the dialog box, the choice “the scrip t” under option each kind of establishment may with ease realize to script being for bid and begins using.

JSP and Servlets

The technology of JSP and Servlet is the most important technology which us e Java

technology to exploit request of server, and it is also the standard which explo it business application .Java developers prefer to use it for a variety of reasons, one

of which is already familiar with the Java language for the development of this tec hnology are easy to learn Java to the other is "a preparation, run everywhere" to bri ng the concept of Web applications, To achieve a "one-

prepared everywhere realized." And more importantly, if followed some of the prin ciples of good design, it can be said of separating and content to create high-quality, reusable, easy to maintain and modify the application. For example, if the document in HTML embedded Java code too much (script), will lead the develope d application is extremely complex, difficult to read, it is not easy reuse, but also fo r future maintenance and modification will also cause difficulties. In fact, CSDN th e JSP / Servlet forum, can often see some questions, the code is very long, can logi c is not very clear, a large number of HTML and Java code mixed together. This is the random development of the defects.

Early dynamic pages mainly CGI (Common Gateway Interface, public Gatew ay Interface) technology, you can use different languages of the CGI programs, suc h as VB, C / C + + or Delphi, and so on. Though the technology of CGI is develop ed and powerful, because of difficulties in programming, and low efficiency, modif y complex shortcomings, it is gradually being replaced by the trend. Of all the new technology, JSP / Servlet with more efficient and easy to program, more powerful, more secure and has a good portability, they have been many people believe that t he future is the most dynamic site of the future development of technology.

Similar to CGI, Servlet support request / response model. When a customer su bmit a request to the server, the server presented the request Servlet, Servlet respon sible for handling requests and generate a response, and then gave the server, and t hen from the server sent to the customer. And the CGI is different, Servlet not gene rate a new process, but with HTTP Server at the same process. It threads through t he use of technology, reduce the server costs. Servlet handling of the request proce ss is this: When received from the client's request, calling service methods, the met hod of Servlet arrival of the first judgement is what type of request (GET / POST / HEAD…), then calls the appropriate treatment (DoGet / doPost / doHead…) and g enerate a response.

Although such a complex, in fact, simply said to Servlet is a Java class. And t he general category of the difference is that this type operating in a Servlet contain er, which can provide session management and targeted lifecycle management. So

that when you use the Servlet, you can get all the benefits of the Java platform, incl uding the safety of the management, use JDBC access the database and crossplatfo rm capability. Moreover, Servlet using thread, and can develop more efficient Web applications.

JSP technology is a key J2EE technology, it at a higher level of abstraction of a Servlet. It allows conventional static and dynamic HTML content generated by c ombining an HTML page looks like, but as a Servlet to run. There are many comm ercial application server support JSP technology, such as BEA WebLogic, IBM W ebSphere, JRun, and so on. JSP and Servlet use more than simple. If you have a JS P support for Web servers, and a JSP document, you can put it Fangdao any static HTML files can be placed, do not have to compile, do not have to pack, do not hav e to ClassPath settings, you can visit as ordinary Web It did visit, the server will au tomatically help you to do other work.

JSP document looks like an ordinary static HTML document, but inside conta ins a number of Java code. It uses. Jsp the suffix, used to tell the server this docum ent in need of special treatment. When we visit a JSP page, the document will first be translated into a JSP engine Java source files, is actually a Servlet, and compiler, and then, like other Servlet, from Servlet engine to handle. Servlet engine of this ty pe loading, handling requests from customers, and the results returned to the custo mer.

After another visit this page to the customer, as long as the paper there have b een no changes, JSP engine has been loaded directly call the Servlet. If you have al ready been modified, it will be once again the implementation of the above process, translate, compile and load. In fact, this is the so-

called "first person to punishment." Because when the first visit to the implementat ion of a series of the above process, so will spend some time after such a visit woul d not.

Java servlets offer a powerful API that provides access to all the information a bout the request, the session, and the application. combining JSP with servlets lets you clearly separate the application logic from the presentation of the application; i n other words, it lets you use the most appropriate component type for the roles of Model, View and Controller.

Servlets, Filters, and Listeners

A servlet is a Java class that extends a server with functionality for processing a request and producing a response. It's implemented using the classes and interfac es defined by the Servlet API. The API consists of two packages: the javax.servlet package contains classes and interfaces that are protocolindependent, while the jav ax.servlet.http package provides HTTP-specific extensions and utility classes.

What makes a servlet a servlet is that the class implements an interface named javax.servlet.Servlet, either directly or by extending one of the support classes. Th is interface defines the methods used by the web container to manage and interact with the servlet. A servlet for processing HTTP requests typically extends the javax.servlet.http.HttpServlet class. This class implements the Servlet interface a nd provides additional methods suitable for HTTP processing.

Servlet Lifecycle

The web container manages all aspects of the servlet's lifecycle. It creates an inst ance of the servlet class when needed, passes requests to the instance for processin g, and eventually removes the instance. For an HttpServlet, the container calls the f ollowing methods at the appropriate times in the servlet lifecycle.

Besides the doGet( ) and doPost( ) methods, there are methods corresponding to t he other HTTP methods: doDelete( ), doHead( ), doOptions( ), doPut( ), and doTra ce( ). Typically you don't implement these methods; the HttpServlet class already t akes care of HEAD, OPTIONS, and TRACE requests in a way that's suitable for m ost servlets, and the DELETE and PUT HTTP methods are rarely used in a web ap plication.

It's important to realize that the container creates only one instance of each ser vlet. This means that the servlet must be thread safe -

able to handle multiple requests at the same time, each executing as a separate thre ad through the servlet code. Without getting lost in details, you satisfy this require ment with regards to instance variables if you modify the referenced objects only i n the init( ) and destroy( ) methods, and just read them in the request processing m ethods.

Compiling and Installing a Servlet

To compile a servlet, you must first ensure that you have the JAR file containi ng all Servlet API classes in the CLASSPATH environment variable. The JAR file is distributed with all web containers. Tomcat includes it in a file called servlet.jar, located in the common/lib directory. On a Windows platform, you include the JAR file in the CLASSPATH.

Reading a Request

One of the arguments passed to the doGet( ) and doPost( ) methods is an obje ct that implements the HttpServletRequest interface. This interface defines method s that provide access to a wealth of information about the request.

Generating a Response

Besides the request object, the container passes an object that implements the Htt pServletResponse interface as an argument to the doGet( ) and doPost( ) methods. This interface defines methods for getting a writer or stream for the response body. It also defines methods for setting the response status code and headers.

Using Filters and Listeners

The servlet specification defines two component types beside servlets: filters and listeners. These two types were introduced in the Servlet 2.3 specification, so if yo u're using a container that doesn't yet support this version of the specification, I'm a fraid you're out of luck.

Filters

A filter is a component that can intercept a request targeted for a servlet, JSP page, or static page, as well as the response before it's sent to the client. This make s it easy to centralize tasks that apply to all requests, such as access control, loggin g, and charging for the content or the services offered by the application. A filter h as full access to the body and headers of the request and response, so it can also per form various transformations. One example is compressing the response body if th e

Acceptlanguage request header indicates that the client can handle a compressed re sponse.

A filter can be applied to either a specific servlet or to all requests matching a URL pattern, such as URLs starting with the same path elements or having the sam e extension.

Listeners

Listeners allow your application to react to certain events. Prior to Servlet 2.3, you could handle only session attribute binding events (triggered when an object was added or removed from a session). You could do this by letting the object save d as a sessionattributimplement the

HttpSessionBindingListener interface. With the new interfaces introduced in the 2.

3 version of the specification, you can create listeners for servlet context and sessio n lifecycle events as well as session activation and passivation events (used by a co ntainer that temporarily saves session state to disk or migrates a session to another server). A newsession attribute event listener also makes it possible to deal with att ribute binding events for all sessions in one place, instead of placing individual list ener objects in each session.

The new types of listeners follow the standard Java event model. In other wor ds, a listener is a class that implements one or more of the listener interfaces. The i nterfaces define methods that correspond to events. The listener class is registered with the container when the application starts, and the container then calls the even t methods at the appropriate times.

Initializing Shared Resources Using a Listener

Beans like this typically need to be initialized before they can be used. For

instance, they may need a reference to a database or some other external data source and may create an initial information cache in memory to provide fast acces s even to the first request for data. You can include code for initialization of the sh ared resources in the servlet and JSP pages that need them, but a more modular app roach is to place all this code in one place and let the other parts of the application work on the assumption that the resources are already initialized and available. An application lifecycle listener is a perfect tool for this type of resource initialization. This type of listener implements the javax.servlet.ServletContextListener interface,

with methods called by the container when the application starts and when it shuts down.

Picking the Right Component Type for Each Task

The Project Billboard application introduced is a fairly complex application. Half the pages are pure controller and business logic processing, it accesses a datab ase to authenticate users, and most pages require access control. In real life, it woul d likely contain even more pages, for instance, pages for access to a shared docume nt archive, time schedules, and a set of pages for administration. As the application evolves, it may become hard to maintain as a pure JSP application. It's easy to forg et to include the access control code in new pages.

This is clearly an application that can benefit from using a combination of JSP pages and the component types defined by the servlet specification for the MVC r oles. Let's look at the main requirements and see how we can map them to appropri ate component types:

Database access should be abstracted, to avoid knowledge of a specific data schema or database engine in more than one part of the application: beans in the r ole of Model can be used to accomplish this.

The database access beans must be made available to all other parts of the application when it starts: an application lifecycle event listener is the perfect co mponent type for this task.

Only authenticated users must be allowed to use the application: a filter can perform access control to satisfy this requirement.

Request processing is best done with Java code: a servlet, acting as the Controller fits the bill.

It must be easy to change the presentation: this is where JSP shines, acting as the View.

Adding servlets, listeners, and filters to the mix minimizes the need for com plex logic in the JSP pages. Placing all this code in Java classes instead makes it po ssible to use a regular Java compiler and debugger to fix potential problems.

Centralized Request Processing Using a Servlet

With a servlet as the common entry point for all application requests, you g ain control over the page flow of the application. The servlet can decide which typ

e o

f response to generate dependin

g on the outcome of the requested action, suc

h a s returning a common error page for all requests that fail, or different responses de pending on the type of client making the request. With the help from some utility c lasses, it can also provide services such as input validation, I18N preparations, and in general, encourage a more streamlined approach to request handling.

Mapping Application Requests to the Servlet

The first requirement for using a Controller servlet is that all requests must pass through it. This can be satisfied in many ways. If you have played around a bit with servlets previously, you're probably used to invoking a servlet with a URI tha t starts with /myApp/servlet. This is a convention introduced by Suns Java Web Se rver (JWS), the first product to support servlets before the API was standardized. Most servlet containers support this convention today, even though it's not formall y defined in the servlet specification.

JSP技术简介及特点——外文翻译

JSP Technology Conspectus And Specialties By:Kathy Sierra and Bert Bates Source: Servlet&JSP The JSP (Java Server mix) technology is used by the Sun microsystem issued by the company to develop dynamic Web application technology. With its easy, cross-platform, in many dynamic Web application programming languages, in a short span of a few years, has formed a complete set of standards, and widely used in electronic commerce, etc. In China, the JSP now also got more extensive attention, get a good development, more and more dynamic website to JSP technology. The related technologies of JSP are briefly introduced. The JSP a simple technology can quickly and with the method of generating Web pages. Use the JSP technology Web page can be easily display dynamic content. The JSP technology are designed to make the construction based on Web applications easier and efficient, and these applications and various Web server, application server, the browser and development tools work together. The JSP technology isn't the only dynamic web technology, also not the first one, in the JSP technology existed before the emergence of several excellent dynamic web technology, such as CGI, ASP, etc. With the introduction of these technologies under dynamic web technology, the development and the JSP. Technical JSP the development background and development history In web brief history, from a world wide web that most of the network information static on stock transactions evolution to acquisition of an operation and infrastructure. In a variety of applications, may be used for based on Web client, look no restrictions. Based on the browser client applications than traditional based on client/server applications has several advantages. These benefits include almost no limit client access and extremely simplified application deployment and management (to update an application, management personnel only need to change the program on a server, not thousands of installation in client applications). So, the software industry is rapidly to build on the client browser multi-layer application. The rapid growth of exquisite based Web application requirements development of technical improvements. Static HTML to show relatively static content is right choice, The new challenge is to create the interaction based on Web applications, in these procedures, the

JSP技术简介(外文翻译)

JSP技术概述 一、JSP的好处 二、JSP页面最终会转换成servler。因而,从根本上,JSP页面能够执 行的任何任务都可以用servler来完成。然而,这种底层的等同性并不意味着servler和JSP页面对于所有的情况都等同适用。问题不在于技术的能力,而是二者在便利性、生产率和可维护性上的不同。毕竟,在特定平台上能够用Java编程语言完成的事情,同样可以用汇编语言来完成,但是选择哪种语言依旧十分重要。 和单独使用servler相比,JSP提供下述好处: 三、λJSP中HTML的编写与维护更为简单。JSP中可以使用常规的HTML: 没有额外的反斜杠,没有额外的双引号,也没有暗含的Java语法。 四、λ能够使用标准的网站开发工具。即使对那些对JSP一无所知的 HTML工具,我们也可以使用,因为它们会忽略JSP标签(JSP tags)。 五、λ可以对开发团队进行划分。Java程序员可以致力于动态代码。Web 开发人员可以将经理集中在表示层(presentation layer)上。对于大型的项目,这种划分极为重要。依据开发团队的大小,及项目的复杂程度,可以对静态HTML和动态内容进行弱分离(weaker separation)和强分离(stronger separation)。 六、在此,这个讨论并不是让您停止使用servlets,只使用JSP。几乎 所有的项目都会同时用到这两种技术。针对项目中的某些请求,您可能会在MVC构架下组合使用这两项技术。我们总是希望用适当的工具完成相对应的工作,仅仅是servlet并不能填满您的工具箱。 二、JSP相对于竞争技术的优势 许多年前,Marty受到邀请,参加一个有关软件技术的小型(20个人)研讨会.做在Marty旁边的人是James Gosling--- Java编程语言的发明者。 隔几个位置,是来自华盛顿一家大型软件公司的高级经理。在讨论过程中,研讨会的主席提出了Jini的议题,这在当时是一项新的Java技术.主席向该经理询问他的想法.他继续说,他们会持续关注这项技术,如果这

外文文献及翻译----Servlet和JSP技术简述

毕业设计(论文) 外文文献翻译 专业 学生姓名 班级 学号 指导教师 XX 学院

外文资料名称:An Overview of Servlet and JSP Technology 外文资料出处:Internet 附件: 1.外文资料翻译译文 2.外文原文 指导教师评语: 签名: 年月日

Servlet和JSP技术简述 Nagle and Wiegley XX译 摘要:Servlet程序在服务器端运行,动态地生成Web页面与传统的CGI和许多其他类似CGI的技术相比,Java Servlet具有更高的效率,更容易使用,功能更强大,具有更好的可移植性,更节省投资。 关键字:JSP技术,Servlet,HTTP服务 1.1Servlet的功能 Servlets是运行在Web或应用服务器上的Java程序,它是一个中间层,负责连接来自Web浏览器或其他HTTP客户程序的请求和HTTP服务器上的数据库或应用程序。Servlet的工作是执行西门的任务,如图1.1所示。 图1.1Web中间件的作用 (1)读取客户发送的显式数据。 最终用户一般在页面的HTML表单中输入这些数据。然而,数据还有可能来自applet或定制的HTTP客户程序。 (2)读取由浏览器发送的隐式请求数据。 图1.1中显示了一条从客户端到Web服务器的单箭头,但实际上从客户端传送到Web服务器的数据有两种,它们分别为用户在表单中输入的显式数据,以及后台的HTTP信息。两种数据都很重要。HTTP信息包括cookie、浏览器所能识别的媒体类型和压缩模式等。 (3)生成结果。 这个过程可能需要访问数据库、执行RMI或EJB调用、调用Web服务,或者直接计算得出对应的响应。实际的数据可能存储在关系型数据库中。该数据库可能不理解HTTP,或者不能返回HTML形式的结果,所有Web浏览器不能直接与数据库进行会话。即使它能够做到这一点,为了安全上的考虑,我们也不希望让它这么做。对应大多数

jsp介绍外文翻译

外文原文 JSP JSP (JavaServer Pages) is initiated by Sun Microsystems, Inc., with many companies to participate in the establishment of a dynamic web page technical standards. JSP technology somewhat similar to ASP technology, it is in the traditional HTML web page document (*. htm, *. html) to insert the Java programming paragraph (Scriptlet) and JSP tag (tag), thus JSP documents (*. jsp). Using JSP development of the Web application is cross-platform that can run on Linux, is also available for other operating systems. JSP technology to use the Java programming language prepared by the category of XML tags and scriptlets, to produce dynamic pages package processing logic. Page also visit by tags and scriptlets exist in the services side of the resources of logic. JSP page logic and web page design and display separation, support reusable component-based design, Web-based application development is rapid and easy. Web server in the face of visits JSP page request, the first implementation of the procedures of, and then together with the results of the implementation of JSP documents in HTML code with the return to the customer. Insert the Java programming operation of the database can be re-oriented websites, in order to achieve the establishment of dynamic pages needed to function. JSP and Java Servlet, is in the implementation of the server, usually returned to the client is an HTML text, as long as the client browser will be able to visit. JSP 1.0 specification of the final version is launched in September 1999, December has introduced 1.1 specifications. At present relatively new is JSP1.2 norms, JSP2.0 norms of the draft has also been introduced. JSP pages from HTML code and Java code embedded in one of the components. The server was in the pages of client requests after the Java code and then will generate the HTML pages to return to the client browser. Java Servlet JSP is the technical foundation and large-scale Web application development needs of Java Servlet and JSP support to complete. JSP with the Java technology easy to use, fully object-oriented, and a platform-independent and secure, mainly for all the characteristics of the Internet. JavaScript, which is completely distinct from the Java programming language, is normally used to dynamically generate HTML on the client, building parts of the Web

毕业设计JSP MVC外文翻译

Struts——一种开源MVC的实现 这篇文章介绍Struts,一个使用servlet和JavaServer Pages技术的一种Model-View-Controller的实现。Struts可以帮助你控制Web项目中的变化并提高专业化。即使你可能永远不会用Struts实现一个系统,你可以获得一些想法用于你未来的servlet和JSP网页的实现中。 简介 在小学校园里的小孩子们都可以在因特网上发布HTML网页。然而,有一个重大的不同在一个小学生和一个专业人士开发的网站之间。网页设计师(或者HTML开发人员)必须理解颜色、用户、生产流程、网页布局、浏览器兼容性、图像创建、JavaScript等等。设计漂亮的网站需要做大量的工作,大多数Java开发人员更注重创建优美的对象接口,而不是用户界面。JavaServer Pages(JSP)技术为网页设计人员和Java开发人员提供了一种联系钮带。 如果你开发过大型Web应用程序,你就理解“变化”这个词语。“模型-视图-控制器”(MVC)就是用来帮助你控制变化的一种设计模式。MVC减弱了业务逻辑接口和数据接口之间的耦合。Struts是一种MVC实现,它将Servlet2.2和JSP 1.1标记(属于J2EE规范)用作实现的一部分。你可能永远不会用Struts实现一个系统,但了解一下Struts或许使你能将其中的一些思想用于你以后的Servlet和JSP实现中。 模型-视图-控制器(MVC) JSP标签只解决了我们问题中的一部分。我们依然有验证、流控制、以及更新应用程序结构的问题。这就是MVC从哪儿来以及来干嘛的。MVC通过把问题分成三类来帮助解决一些与单模块相关的问题: ?Model(模型) 模块包括应用程序功能的核心。模型封装着应用程序的各个结构。有时它所包含的唯一功能就是结构。它对于视图或者控制器一无所知。 ?View(视图) 视图提供了模型的演示。它是应用程序的外表。视图可以进入模型获得者,

JSP应用框架外文翻译

中文4816字 外文资料翻译 (2011 届大学本科)题目: 学院: 专业: 班级: 姓名: 学号: 主指导教师: 2011年02 月24 日 教务处印制

外文原文 JSP application frameworks brian wright、michael freedman https://www.wendangku.net/doc/f713853372.html,/pdf/introduction-to-machine-learning/ What are application frameworks: A framework is a reusable, semi-complete application that can be specialized to produce custom applications [Johnson]. Like people, software applications are more alike than they are different. They run on the same computers, expect input from the same devices, output to the same displays, and save data to the same hard disks. Developers working on conventional desktop applications are accustomed to toolkits and development environments that leverage the sameness between applications. Application frameworks build on this common ground to provide developers with a reusable structure that can serve as the foundation for their own products. A framework provides developers with a set of backbone components that have the following characteristics: 1.They are known to work well in other applications. 2. They are ready to use with the next project. 3. They can also be used by other teams in the organization. Frameworks are the classic build-versus-buy proposition. If you build it, you will understand it when you are done—but how long will it be before you can roll your own? If you buy it, you will have to climb the learning curve—and how long is that going to take? There is no right answer here, but most observers would agree that frameworks such as Struts provide a significant return on investment compared to starting from scratch, especially for larger projects. Other types of frameworks: The idea of a framework applies not only to applications but to application componentsas well. Throughout this article, we introduce other types of frameworks that you can use with Struts. These include the Lucene search engine, the Scaffold toolkit, the Struts validator, and the Tiles tag library. Like application frameworks, these tools provide semi-complete versions of a subsystem that can be specialized to

外文文献 JSP 毕业设计

THE TECHNIQUE DEVELOPMENT HISTORY OF JSP By:Kathy Sierra and Bert Bates Source:Servlet&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 JSP( the Java Server Pages) formally, the this kind of new Web application development technique very quickly caused the people's 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 GENERALIZE 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技术中英文对照外文翻译文献

(文档含英文原文和中文翻译) 中英文对照外文翻译 JSP技术 Java Server Pages(JSP)是一种基于web的脚本编程技术,类似于网景公司的

服务器端Java脚本语言—— server-side JavaScript(SSJS)和微软的Active Server Pages(ASP)。与SSJS和ASP相比,JSP具有更好的可扩展性,并且它不专属于任何一家厂商或某一特定的Web服务器。尽管JSP规范是由Sun公司制定的,但任何厂商都可以在自己的系统上实现JSP。 在Sun正式发布JSP(Java Server Pages)之后,这种新的Web应用开发技术很快引起了人们的关注。JSP为创建高度动态的Web应用提供了一个独特的开发环境。按照Sun的说法,JSP能够适应市场上包括Apache WebServer、IIS4.0在内的85%的服务器产品。 本文将介绍JSP相关的知识,以及JavaBean的相关内容,当然都是比较粗略的介绍其中的基本内容,仅仅起到抛砖引玉的作用,如果读者需要更详细的信息,请参考相应的JSP的书籍。 1.1 概述 JSP(Java Server Pages)是由Sun Microsystems公司倡导、许多公司参与一起建立的一种动态网页技术标准,其在动态网页的建设中有其强大而特别的功能。JSP与Microsoft的ASP技术非常相似。两者都提供在HTML代码中混合某种程序代码、由语言引擎解释执行程序代码的能力。下面我们简单的对它进行介绍。 JSP页面最终会转换成servlet。因而,从根本上,JSP页面能够执行的任何任务都可以用servlet来完成。然而,这种底层的等同性并不意味着servlet和JSP 页面对于所有的情况都等同适用。问题不在于技术的能力,而是二者在便利性、生产率和可维护性上的不同。毕竟,在特定平台上能够用Java编程语言完成的事情,同样可以用汇编语言来完成,但是选择哪种语言依旧十分重要。 和单独使用servlet相比,JSP提供下述好处: JSP中HTML的编写与维护更为简单。JSP中可以使用常规的HTML:没有额外的反斜杠,没有额外的双引号,也没有暗含的Java语法。 能够使用标准的网站开发工具。即使是那些对JSP一无所知的HTML工具,我们也可以使用,因为它们会忽略JSP标签(JSP tags)。 可以对开发团队进行划分。Java程序员可以致力于动态代码。Web开发人员可以将精力集中在表示层(presentation layer)上。对于大型的项目,这种划分极为重要。依据开发团队的大小,及项目的复杂程度,可以对静态HTML和动态内容

JSP技术外文翻译

翻译资料原文 Overview of JSP Technology Benefits of 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: ? 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. ? 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. ? 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. Advantages of JSP Over Competing Technologies A number of years ago, Marty was invited to attend a small 20-person industry roundtable discussion on software technology. Sitting in the seat next to Marty was James Gosling, inventor of the Java programming language. Sitting several seats away was a high-level manager from a

JSP外文翻译

JSP简介 JSP(JavaServer Pages)是由Sun Microsystems公司倡导、许多公司参与一起建立的一种动态网页技术标准。JSP技术有点类似ASP技术,它是在传统的网页HTML文件(*.htm,*.html)中插入Java程序段(Scriptlet)和JSP标记(tag),从而形成JSP文件(*.jsp)。 用JSP开发的Web应用是跨平台的,即能在Linux下运行,也能在其他操作系统上运行。 JSP技术使用Java编程语言编写类XML的tags和scriptlets,来封装产生动态网页的处理逻辑。网页还能通过tags和scriptlets访问存在于服务端的资源的应用逻辑。JSP将网页逻辑与网页设计和显示分离,支持可重用的基于组件的设计,使基于Web的应用程序的开发变得迅速和容易。 Web服务器在遇到访问JSP网页的请求时,首先执行其中的程序段,然后将执行结果连同JSP文件中的HTML代码一起返回给客户。插入的Java程序段可以操作数据库、重新定向网页等,以实现建立动态网页所需要的功能。 JSP与Java Servlet一样,是在服务器端执行的,通常返回该客户端的就是一个HTML文本,因此客户端只要有浏览器就能浏览。 JSP的1.0规范的最后版本是1999年9月推出的,12月又推出了1.1规范。目前较新的是JSP1.2规范,JSP2.0规范的征求意见稿也已出台。 JSP页面由HTML代码和嵌入其中的Java代码所组成。服务器在页面被客户端请求以后对这些Java代码进行处理,然后将生成的HTML页面返回给客户端的浏览器。Java Servlet 是JSP的技术基础,而且大型的Web应用程序的开发需要Java Servlet和JSP配合才能完成。JSP具备了Java技术的简单易用,完全的面向对象,具有平台无关性且安全可靠,主要面向因特网的所有特点。 JSP技术的强势 (1)一次编写,到处运行。在这一点上Java比PHP更出色,除了系统之外,代码不用做任何更改。 (2)系统的多平台支持。基本上可以在所有平台上的任意环境中开发,在任意环境中进行系统部署,在任意环境中扩展。相比ASP/PHP的局限性是显而易见的。

JSP外文翻译

附件1:外文资料翻译译文 Struts——一种开源MVC的实现 这篇文章介绍Struts,一个使用servlet 和JavaServer Pages 技术的一种Model-View-Controller 的实现。Struts 可以帮助你控制Web 项目中的变化并提高专业化。即使你可能永远不会用Struts实现一个系统,你可以获得一些想法用于你未来的servlet 和JSP 网页的实现中。 简介 在小学校园里的小孩子们都可以在因特网上发布HTML 网页。然而,有一个重大的不同在一个小学生和一个专业人士开发的网站之间。网页设计师(或者HTML开发人员)必须理解颜色、用户、生产流程、网页布局、浏览器兼容性、图像创建、JavaScript 等等。设计漂亮的网站需要做大量的工作,大多数Java 开发人员更注重创建优美的对象接口,而不是用户界面。JavaServer Pages (JSP) 技术为网页设计人员和Java 开发人员提供了一种联系钮带。 如果你开发过大型Web 应用程序,你就理解“变化”这个词语。“模型-视图-控制器”(MVC) 就是用来帮助你控制变化的一种设计模式。MVC 减弱了业务逻辑接口和数据接口之间的耦合。Struts 是一种MVC 实现,它将Servlet 2.2 和JSP 1.1 标记(属于J2EE 规范)用作实现的一部分。你可能永远不会用Struts 实现一个系统,但了解一下Struts 或许使你能将其中的一些思想用于你以后的Servlet和JSP 实现中。 模型-视图-控制器 (MVC) JSP标签只解决了我们问题中的一部分。我们依然有验证、流控制、以及更新应用程序结构的问题。这就是MVC从哪儿来以及来干嘛的。MVC通过把问题分成三类来帮助解决一些与单模块相关的问题:

外文翻译-----JSP简介

JSP Open Category: WEB, JAVA, dynamic pages, the Knowledge Network Contents ? JSP Profile ? JSP technology strength ? JSP technology vulnerable ? JSP six built-in objects: ? JSP dynamic web site development and technology JSP Profile JSP (JavaServer Pages) is initiated by Sun Microsystems, Inc., with many companies to participate in the establishment of a dynamic web page technical standards. JSP technology somewhat similar to ASP technology, it is in the traditional HTML web page document (*. htm, *. html) to insert the Java programming paragraph (Scriptlet) and JSP tag (tag), thus JSP documents (*. jsp). Using JSP development of the Web application is cross-platform that can run on Linux, is also available for other operating systems. JSP technology to use the Java programming language prepared by the category of XML tags and scriptlets, to produce dynamic pages package processing logic. Page also visit by tags and scriptlets exist in the services side of the resources of logic. JSP page logic and web page design and display separation, support reusable component-based design, Web-based application development is rapid and easy. Web server in the face of visits JSP page request, the first implementation of the procedures of, and then together with the results of the implementation of JSP documents in HTML code with the return to the customer. Insert the Java programming operation of the database can be re-oriented websites, in order to achieve the establishment of dynamic pages needed to function. JSP and Java Servlet, is in the implementation of the server, usually returned to the client is an HTML text, as long as the client browser will be able to visit.

相关文档
相关文档 最新文档