外文翻译---JSP技术与主流JAVA EE开源框架(SSH)技术简介

外文翻译---JSP技术与主流JAVA EE开源框架(SSH)技术简介
外文翻译---JSP技术与主流JAVA EE开源框架(SSH)技术简介

本科毕业设计外文翻译

JSP technology and mainstream open-source framework for JAVA EE

院(系、部)名称:工商管理学院

专业名称:信息管理与信息系统

学生姓名:

学生学号:

指导教师:

2012年 5月 18日

JSP technology and mainstream open-source framework for

JA V AEE

1.JSP Profile

JSP (Java Server 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 securemainly for all the characteristics of the Internet. JSP technology strength: (1) time to prepare, run everywhere. At this point Java better than PHP, in addition to systems, the code not to

make any changes.(2) the multi-platform support. Basically on all platforms of any development environment, in any environment for deployment in any environment in the expansion. Compared ASP / PHP limitations are obvious. (3) a strong scalability. From only a small Jar documents can run Servlet / JSP, to the multiple servers clustering and load balancing, to multiple Application for transaction processing, information processing, a server to numerous servers, Java shows a tremendous Vitality. (4) diver sification and powerful development tools support. This is similar to the ASP, Java already have many very good development tools, and many can be free, and many of them have been able to run on a variety of platforms under. JSP technology vulnerable:(1) and the same ASP, Java is the advantage of some of its fatal problem. It is precisely because in order to cross-platform functionality, in order to extreme stretching capacity, greatly increasing the complexity of the product. (2) Java's speed is class to complete the permanent memory, so in some cases by the use of memory compared to the number of users is indeed a "minimum cost performance." On the other hand, it also needs disk space to store a series of. Java documents and. Class, as well as the corresponding versions of documents.

2. J2EE Development Framework

Java2 Enterprise Edition middleware unified ideology played a significant role. For example, J2EE for distributed transaction management, directory services and messaging services provide a standard programming interface. J2EE-based -Java2Standard Edition (J2SE), successfully access for Java provides a standard relational database.

But, as this article "J2EE programming of the lack of support", as mentioned, J2EEplatform does not provide a satisfactory application programming model. Sun and some of the major application server vendors wanted to use the development tools to reduce the complexity of J2EE development, but these tools are no other outstanding JA V A development tools, which have advanced refactoring tools, and. NET platform compared, J2EE tool support appeared to be very inferior.

Many J2EE development tools automatically generate the code for the same complex as the tools themselves. In many small-scale J2EE open source community developers chose another way of development - some can be difficult to reduce the development of J2EE development framework, the more popular such as: Struts, Hibernate, and Spring Framework, J2EE project types in many of today they play an important the role.

2.1 Spring Framework

The Spring Framework is an open source application framework for the Java platform.

The first version was written by Rod Johnson who released the framework with the publication of his book Expert One-on-One J2EE Design and Development in October 2002. The framework was first released under the Apache 2.0 license in June 2003. The first milestone release, 1.0, was released in March 2004, with further milestone releases in September 2004 and March 2005. The Spring 1.2.6 framework won a Jolt productivity award and a JAX Innovation Award in 2006. Spring 2.0 was released in October 2006, and Spring 2.5 in November 2007. In December 2009 version 3.0 GA was released. The current version is 3.0.5.

The core features of the Spring Framework can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform. Although the Spring Framework does not impose any specific programming model, it has become popular in the Java community as an alternative to, replacement for, or even addition to the Enterprise JavaBean (EJB) model.

ModulesThe Spring Framework comprises several modules that provide a range of services:

Inversion of Control container: configuration of application components and lifecycle management of Java objects

Aspect-oriented programming: enables implementation of cross-cutting routines Data access: working with relational database management systems on the Java platform using JDBC and object-relational mapping tools

Transaction management: unifies several transaction management APIs and coordinates transactions for Java objects

Model-view-controller: an HTTP and Servlet-based framework providing hooks for extension and customization

Remote Access framework: configurative RPC-style export and import of Java objects over networks supporting RMI, CORBA and HTTP-based protocols including web services (SOAP)

Convention-over-configuration: a rapid application development solution for Spring-based enterprise applications is offered in the Spring model.

Batch processing: a framework for high-volume processing featuring reusable

functions including logging/tracing, transaction management, job processing statistics, job restart, skip, and resource management

Authentication and authorization: configurable security processes that support a range of standards, protocols, tools and practices via the Spring Security sub-project (formerly Acegi Security System for Spring).

Remote Management: configurative exposure and management of Java objects for local or remote configuration via JMX

Messaging: configurative registration of message listener objects for transparent message consumption from message queues via JMS, improvement of message sending over standard JMS APIs

Testing: support classes for writing unit tests and integration tests

Inversion of Control containerCentral to the Spring Framework is its Inversion of Control container, which provides a consistent means of configuring and managing Java objects using callbacks. The container is responsible for managing object lifecycles: creating objects, calling initialization methods, and configuring objects by wiring them together.

Objects created by the container are also called Managed Objects or Beans. Typically, the container is configured by loading XML files containing Bean definitions which provide the information required to create the beans.

Objects can be obtained by means of Dependency lookup or Dependency injection. Dependency lookup is a pattern where a caller asks the container object for an object with a specific name or of a specific type. Dependency injection is a pattern where the container passes objects by name to other objects, via either constructors, properties, or factory methods.

In many cases it's not necessary to use the container when using other parts of the Spring Framework, although using it will likely make an application easier to configure and customize. The Spring container provides a consistent mechanism to configure applications and integrates with almost all Java environments, from small-scale applications to large enterprise applications.

The container can be turned into a partially-compliant EJB3 container by means of the Pitchfork project. The Spring Framework is criticized by some as not being standards compliant. However, SpringSource doesn't see EJB3 compliance as a major goal, and claims that the Spring Framework and the container allow for more powerful programming models.

Aspect-oriented programming frameworkThe Spring Framework has its own AOP framework which modularizes cross-cutting concerns in aspects. The motivation for creating a separate AOP framework comes from the belief that it would be possible to provide basic AOP features without too much complexity in either design, implementation, or configuration. The SAOP framework also takes full advantage of the Spring Container.

The Spring AOP framework is interception based, and is configured at runtime. This removes the need for a compilation step or load-time weaving. On the other hand, interception only allows for public or protected method execution on existing objects at a join point.

Compared to the AspectJ framework, Spring AOP is less powerful but also less complicated. Spring 1.2 includes support to configure AspectJ aspects in the container. Spring 2.0 added more integration with AspectJ; for example, the pointcut language is reused and can be mixed with SpAOP-based aspects. Further, Spring 2.0 added a Spring Aspects library which uses AspectJ to offer common Spring features such as declarative transaction management and dependency injection via AspectJ compile-time or load-time weaving. SpringSource also uses AspectJ for AOP in other Spring projects such as Spring Roo and Spring Insight, with Spring Security also offering an AspectJ-based aspect library.

Spring AOP has been designed to make it able to work with cross-cutting concerns inside the Spring Framework. Any object which is created and configured by the container can be enriched using Spring AOP.

The Spring Framework uses Spring AOP internally for transaction management, security, remote access, and JMX.

Since version 2.0 of the framework, Spring provides two approaches to the AOP configuration:schema-based approach.@AspectJ-based annotation style.

The Spring team decided not to introduce new AOP-related terminology; therefore, in the Spring reference documentation and API, terms such as aspect, join point, advice, pointcut, introduction, target object (advised object), AOP proxy, and weaving all have the same meanings as in most other AOP frameworks (particularly AspectJ).

Data access frameworkSpring's data access framework addresses common difficulties developers face when working with databases in applications. Support is provided for all popular data access frameworks in Java: JDBC, iBatis, Hibernate,

JDO, JPA, Oracle TopLink, Apache OJB, and Apache Cayenne, among others.

For all of these supported frameworks, Spring provides these features:

Resource management - automatically acquiring and releasing database resources

Exception handling - translating data access related exception to a Spring data access hierarchy

Transaction participation - transparent participation in ongoing transactions

Resource unwrapping - retrieving database objects from connection pool wrappers

Abstraction for BLOB and CLOB handling

All these features become available when using Template classes provided by Spring for each supported framework. Critics say these Template classes are intrusive and offer no advantage over using (for example) the Hibernate API.. directly. In response, the Spring developers have made it possible to use the Hibernate and JPA APIs directly. This however requires transparent transaction management, as application code no longer assumes the responsibility to obtain and close database resources, and does not support exception translation.

Together with Spring's transaction management, its data access framework offers a flexible abstraction for working with data access frameworks. The Spring Framework doesn't offer a common data access API; instead, the full power of the supported APIs is kept intact. The Spring Framework is the only framework available in Java which offers managed data access environments outside of an application server or container. While using Spring for transaction management with Hibernate, the following beans may have to be configured.

Transaction management frameworkSpring's transaction management framework brings an abstraction mechanism to the Java platform. Its abstraction is capable ofworking with local and global transactions (local transaction does not require an application server).working with nested transactionsworking with transaction safepointsworking in almost all environments of the Java platform

In comparison, JTA only supports nested transactions and global transactions, and requires an application server (and in some cases also deployment of applications in an application server).

The Spring Framework ships a PlatformTransactionManager for a number of transaction management strategies:

Transactions managed on a JDBC Connection

Transactions managed on Object-relational mapping Units of Work

Transactions managed via the JTA TransactionManager and UserTransaction

Transactions managed on other resources, like object databases

Next to this abstraction mechanism the framework also provides two ways of adding transaction management to applications:

Programmatically, by using Spring's TransactionTemplate

Configuratively, by using metadata like XML or Java 5 annotations

Together with Spring's data access framework — which integrates the transaction management framework —it is possible to set up a transactional system through configuration without having to rely on JTA or EJB. The transactional framework also integrates with messaging and caching engines.

The BoneCP Spring/Hibernate page contains a full example project of Spring used in conjunction with Hibernate.

Model-view-controller frameworkThe Spring Framework features its own MVC framework, which wasn't originally planned. The Spring developers decided to write their own web framework as a reaction to what they perceived as the poor design of the popular Jakarta Struts web framework, as well as deficiencies in other available frameworks. In particular, they felt there was insufficient separation between the presentation and request handling layers, and between the request handling layer and the model.

Like Struts, Spring MVC is a request-based framework. The framework defines strategy interfaces for all of the responsibilities which must be handled by a modern request-based framework. The goal of each interface is to be simple and clear so that it's easy for Spring MVC users to write their own implementations if they so choose. MVC paves the way for cleaner front end code. All interfaces are tightly coupled to the Servlet API. This tight coupling to the Servlet API is seen by some as a failure on the part of the Spring developers to offer a high-level abstraction for web-based applications[citation needed]. However, this coupling makes sure that the features of the Servlet API remain available to developers while offering a high abstraction framework to ease working with said API.

The DispatcherServlet class is the front controller of the framework and is responsible for delegating control to the various interfaces during the execution phases of a HTTP request.

The most important interfaces defined by Spring MVC, and their responsibilities, are listed below:

HandlerMapping: selecting objects which handle incoming requests (handlers) based on any attribute or condition internal or external to those requests HandlerAdapter: execution of objects which handle incoming requests

Controller: comes between Model and View to manage incoming requests and redirect to proper response. It essentially is like a gate that directs the incoming information. It switches between going into model or view.

View: responsible for returning a response to the client. It is possible to go straight to view without going to the model part. It is also possible to go through all three.

ViewResolver: selecting a View based on a logical name for the view (use is not strictly required)

HandlerInterceptor: interception of incoming requests comparable but not equal to Servlet filters (use is optional and not controlled by DispatcherServlet).

LocaleResolver: resolving and optionally saving of the locale of an individual user

MultipartResolver: facilitate working with file uploads by wrapping incoming requests

Each strategy interface above has an important responsibility in the overall framework. The abstractions offered by these interfaces are powerful, so to allow for a set of variations in their implementations, Spring MVC ships with implementations of all these interfaces and together offers a feature set on top of the Servlet API. However, developers and vendors are free to write other implementations. Spring MVC uses the Java java.util.Map interface as a data-oriented abstraction for the Model where keys are expected to be string values.

The ease of testing the implementations of these interfaces seems one important advantage of the high level of abstraction offered by Spring MVC. DispatcherServlet is tightly coupled to the Spring Inversion of Control container for configuring the web layers of applications. However, applications can use other parts of the Spring Framework—including the container—and choose not to use Spring MVC.

Because Spring MVC uses the Spring container for configuration and assembly, web-based applications can take full advantage of the Inversion of Control features offered by the container. This framework allows for multilayering. It allows for the

code to be broken apart and used more effectively in segments, while allowing the mvc to do the work. It allows for back and forth transmission of data. Some designs are more linear without allowing a forward and backward flow of information. MVC is designed very nicely to allow this interaction. It is used more than just in web design, but also in computer programming. It's very effective for web design. Basically allows a checks and balance system to occur where before being viewed it can be properly examined.

Remote access frameworkSpring's Remote Access framework is an abstraction for working with various RPC-based technologies available on the Java platform both for client connectivity and exporting objects on servers. The most important feature offered by this framework is to ease configuration and usage of these technologies as much as possible by combining Inversion of Control and AOP.

The framework also provides fault-recovery (automatic reconnection after connection failure) and some optimizations for client-side use of EJB remote stateless session beans.

Convention-Over-Configuration Rapid Application DevelopmentSpring Roo is Spring's Convention-over-configuration solution for rapidly building applications in Java. It currently supports Spring Framework, Spring Security and Spring Web Flow, with remaining Spring projects scheduled to be added in due course. Roo differs from other rapid application development frameworks by focusing on:

The following diagram represents the Spring Framework Architecture

2.2 StrutsIntroduction

Apache StrutsFrom Wikipedia, the free encyclopediaJump to: navigation, search "Struts" redirects here. For the structural component, see strut. For other meanings, see strut (disambiguation).

This article includes a list of references, but its sources remain unclear because it has insufficient inline citations.

Please help to improve this article by introducing more precise citations where appropriate.

Apache Struts is an open-source web application framework for developing Java EE web applications. It uses and extends the Java Servlet API to encourage developers to adopt a model-view-controller (MVC) architecture. It was originally created by Craig McClanahan and donated to the Apache Foundation in May, 2000.

Formerly located under the Apache Jakarta Project and known as Jakarta Struts, it became a top level Apache project in 2005.

Design goals and overview in a standard Java EE web application, the client will typically submit information to the server via a web form. The information is then either handed over to a Java Servlet that processes it, interacts with a database and produces an HTML-formatted response, or it is given to a JavaServer Pages (JSP) document that intermingles HTML and Java code to achieve the same result. Both approaches are often considered inadequate for large projects because they mix application logic with presentation and make maintenance difficult.

The goal of Struts is to separate the model (application logic that interacts with a database) from the view (HTML pages presented to the client) and the controller (instance that passes information between view and model). Struts provides the controller (a servlet known as ActionServlet) and facilitates the writing of templates for the view or presentation layer (typically in JSP, but XML/XSLT and Velocity are also supported). The web application programmer is responsible for writing the model code, and for creating a central configuration file struts-config.xml that binds together model, view and controller.

Requests from the client are sent to the controller in the form of "Actions" defined in the configuration file; if the controller receives such a request it calls the corresponding Action class that interacts with the application-specific model code. The model code returns an "ActionForward", a string telling the controller what output page to send to the client. Information is passed between model and view in the form of special JavaBeans. A powerful custom tag library allows it to read and write the content of these beans from the presentation layer without the need for any embedded Java code.

Struts is categorized as a request-based web application frameworkStruts also supports internationalization by web forms, and includes a template mechanism called "Tiles" that (for instance) allows the presentation layer to be composed from independent header, footer, and content componentsHistoryThe Apache Struts Project was launched in May 2000 by Craig R. McClanahan to provide a standard MVC framework to the Java community. In July 2001, version 1.0 was released.

Struts2 was originally known as WebWork 2. After having been developed separately for several years, WebWork and Struts were combined in 2008 to create Struts 2.

Competing MVC frameworksAlthough Struts is a well-documented, mature, and popular framework for building front ends to Java applications, there are other frameworks categorized as "lightweight" MVC frameworks such as Spring MVC, Stripes, Wicket, Play!, and Tapestry. The new XForms standards and frameworks may also be another option to building complex web Form validations with Struts in the future.

The WebWork framework spun off from Apache Struts aiming to offer enhancements and refinements while retaining the same general architecture of the original Struts framework. However, it was announced in December 2005 that Struts would re-merge with WebWork. WebWork 2.2 has been adopted as Apache Struts2, which reached its first full release in February 2007.

In 2004 Sun launched an addition to the Java platform, called JavaServer Faces (JSF). Aside from the original Struts framework, the Apache project previously offered a JSF-based framework called Shale, which was retired in May 2009.

In this section we will discuss about Architecture. Struts is famous for its robust Architecture and it is being used for developing small and big software projects.

Struts is an open source framework used for developing J2EE web applications using Model View Controller (MVC) design pattern. It uses and extends the Java Servlet API to encourage developers to adopt an MVC architecture. Struts framework provides three key components:

A request handler provided by the application developer that is used to mapped to a particular URI. A response handler which is used to transfer the control to another resource which will be responsible for completing the response.

A tag library which helps developers to create the interactive form based applications with server pagesLearn Struts 2.2.1 frameworkStruts provides you the basic infrastructure infrastructure for implementing MVC allowing the developers to concentrate on the business logicThe main aim of the MVC architecture is to separate the business logic and application data from the presentation data to the user.

Here are the reasons why we should use the MVC design patternThey are resuable: When the problems recurs, there is no need to invent a new solution, we just have to follow the pattern and adapt it as necessary. They are expressive: By using the MVC design pattern our application becomes more expressive.

1). Model: The model object knows about all the data that need to be displayed. It is model who is aware about all the operations that can be applied to transform that

object. It only represents the data of an application. The model represents enterprise data and the business rules that govern access to and updates of this data. Model is not aware about the presentation data and how that data will be displayed to the browser.

2). View: The view represents the presentation of the application. The view object refers to the model. It uses the query methods of the model to obtain the contents and renders it. The view is not dependent on the application logic. It remains same if there is any modification in the business logic. In other words, we can say that it is the responsibility of the view's to maintain the consistency in its presentation when the model changes.

3). Controller: Whenever the user sends a request for something then it always go through the controller. The controller is responsible for intercepting the requests from view and passes it to the model for the appropriate action. After the action has been taken on the data, the controller is responsible for directing the appropriate view to the user. In GUIs, the views and the controllers often work very closely together.

The Struts framework is composed of approximately 300 classes and interfaces which are organized in about 12 top level packages. Along with the utility and helper classes framework also provides the classes and interfaces for working with controller and presentation by the help of the custom tag libraries. It is entirely on to us which model we want to choose. The view of the Struts architecture is given below: The Struts Controller ComponentsWhenever a user request for something, then the request is handled by the Struts Action Servlet. When the ActionServlet receives the request, it intercepts the URL and based on the Struts Configuration files, it gives the handling of the request to the Action class. Action class is a part of the controller and is responsible for communicating with the model layer.

The Struts View Components: The view components are responsible for presenting information to the users and accepting the input from them. They are responsible for displaying the information provided by the model components. Mostly we use the Java Server Pages (JSP) for the view presentation. To extend the capability of the view we can use the Custom tags, java script etc.

The Struts model componentThe model components provides a model of the business logic behind a Struts program. It provides interfaces to databases or back- ends systems. Model components are generally a java class. There is not any such defined format for a Model component, so it is possible for us to reuse Java codewhich are written for other projects. We should choose the model according to

our client requirement.

2.3 Hibernate FrameWork

Hibernate is an object-relational mapping (ORM) library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database. Hibernate solves object-relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions.

Hibernate is free software that is distributed under the GNU Lesser General Public License Hibernate's primary feature is mapping from Java classes to database tables (and from Java data types to SQL data types). Hibernate also provides data query and retrieval facilities. Hibernate generates the SQL calls and attempts to relieve the developer from manual result set handling and object conversion and keep the application portable to all supported SQL databases with little performance overhead.

Mapping Java classes to database tables is accomplished through the configuration of an XML file or by using Java Annotations. When using an XML file, Hibernate can generate skeletal source code for the persistence classes. This is unnecessary when annotation is used. Hibernate can use the XML file or the annotation to maintain the database schema.

Facilities to arrange one-to-many and many-to-many relationships between classes are provided. In addition to managing association between objects, Hibernate can also manage reflexive associations where an object has a one-to-many relationship with other instances of its own type.

Hibernate supports the mapping of custom value types. This makes the following scenarios possible:

Overriding the default SQL type that Hibernate chooses when mapping a column to a property.

Mapping Java Enum to columns as if they were regular properties.

Mapping a single property to multiple columns.

Persistence Hibernate provides transparent persistence for Plain Old Java Objects (POJOs). The only strict requirement for a persistent class is a no-argument constructor, not necessarily public. Proper behavior in some applications also requires special attention to the equals() and hashCode() methods.

Collections of data objects are typically stored in Java collection objects such as Set and List. Java generics, introduced in Java 5, are supported. Hibernate can be configured to lazy load associated collections. Lazy loading is the default as of Hibernate 3.Related objects can be configured to cascade operations from one to the other. For example, a parent such as an Album object can be configured to cascade its save and/or delete operation to its child Track objects. This can reduce development time and ensure referential integrity. A dirty checking feature avoids unnecessary database write actions by performing SQL updates only on the modified fields of persistent objects Hibernate Query Language (HQL)Hibernate provides an SQL inspired language called Hibernate Query Language (HQL) which allows SQL-like queries to be written against Hibernate's data objects. Criteria Queries are provided as an object-oriented alternative to HQL. Integration Hibernate can be used both in standalone Java applications and in Java EE applications using servlets or EJB session beans. It can also be included as a feature in other programming languages. For example, Adobe integrated Hibernate into version 9 of ColdFusion (which runs on J2EE app servers) with an abstraction layer of new functions and syntax added into CFML Entities and componentsIn Hibernate jargon, an entity is a stand-alone object in Hibernate's persistent mechanism which can be manipulated independently of other objects. In contrast, a component is subordinate to other entities and can be manipulated only with respect to other entities. For example, an Album object may represent an entity but the Tracks object associated with the Album objects would represent a component of the Album entity if it is assumed that Tracks can only be saved or retrieved from the database through the Album object. Unlike J2EE, it can switch databases History Hibernate was started in 2001 by Gavin King as an alternative to using EJB2-style entity beans. Its mission back then was to simply offer better persistence capabilities than offered by EJB2 by simplifying the complexities and allowing for missing features Early in 2003, the Hibernate development team began Hibernate2 releases which offered many significant improvements over the first release JBoss, Inc. (now part of Red Hat) later hired the lead Hibernate developers and worked with them in supporting Hibernate.

As of 2010 update the current version of Hibernate is Version 3.x. This version introduced new features like a new Interceptor/Callback architecture, user defined filters, and JDK 5.0 Annotations (Java's metadata feature). As of 2010[update] Hibernate 3 (version 3.5.0 and up) is a certified implementation of the Java

Persistence API 2.0 specification via a wrapper for the Core module which provides conformity with the JSR 317 standard Application programming interface A session is intended to last as long as the logical transaction on the database. Due to the latter feature Session implementations are not expected to be thread safe nor to be used by multiple clients.

JSP技术与主流JAVA EE开源框架(SSH)技术简介

1 JSP技术简介

JSP(Java Server Pages)是由Sun公司倡导、许多公司参与一起建立的一种动态网页技术标准。JSP技术有点类似ASP技术,它是在传统的网页HTML文件中插入Java程序段(Scriptlet)和JSP标记(tag),从而形成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规范。日前较新的是JSP 1.2规范,JSP2.0规范的征求意见稿也已出台。JSP页而由HTML代码和嵌入其中的java代码所组成。服务器在页而被客户端请求以后对这些java代码进行处理,然后将生成的HTML页而返回给客户端的浏览器。Java Servlet是JSP的技术基础,而且大型的Web应用程序的开发需要Java和JSP配合才能完成。JSP具备了Java技术的简单易用,完全的而向对象,其有平台无关性且安全可靠,主要而向因特网的所有特点。

2 J2EE开发框架

Java2企业版为中间件领域思想的统一上发挥了很大的作用。比如,J2EE为分布式事务管理、目录服务和消息服务提供了一套标准的编程接口。J2EE的基础——Java2标准版(J2SE) ,成功地为Java提供了一套访问关系数据库的标准。

但是,就像本文中“J2EE缺乏对编程的支持”提到的一样,J2EE这个平台没有能够提供一个令人满意的应用程序编程模型。Sun公司和一些大的应用服务器供应商都想用开发工具来降低J2EE开发的复杂性,但是这些工具没有其他的JA V A 开发工具优秀,后者有先进的重构工具,和.NET平台相比,J2EE的工具支持显得很逊色。

很多J2EE开发工具自动产生的代码像这些工具本身同样复杂。在开源社区很多小型J2EE开发者选择了另外一种开发方式——一些可以降低J2EE开发难度的开发框架,较为流行的比如:Struts, Hibernate, 和Spring Framework,他们当今很多J2EE项目种扮演着重要角色。

2.1 Spring框架

Spring Framework是一个开源的Java/java EE全功能栈(full-stack)的应用程序框架,以Apache许可证形式发布,也有.NET平台上的移植版本。该框架基于Expert One-on-One Java EE Design and Development(ISBN 0-7645-4385-7)一书中的代码,最初由Rod Johnson等开发。Spring Framework提供了一个简易的开发方式,这种开发方式,将避免

那些可能致使底层代码变得繁杂混乱的大量的属性文件和帮助类。Spring中包含的关键特性:强大的基于JavaBeans的采用控制翻转原则的配置管理,使得应用程序的组建更加快捷简易。一个可用于从applet到JavaEE等不同运行环境的核心Bean工厂。数据库事务的一般化抽象层,允许声明式事务管理器,简化事务的划分使之与底层无关。内建的针对JTA和单个JDBC数据源的一般化策略,使Spring的事务支持不要求JavaEE环境,这与一般的JTA或者EJB CMT相反。

JDBC抽象层提供了有针对性的异常等级(不再从SQL异常中提取原始代码),简化了错误处理,大大减少了程序员的编码量。再次利用JDBC时,你无需再写出另一个终止(finally)模块。并且面向JDBC的异常与Spring通用数据访问对象(Data Access Object)异常等级相一致。

以资源容器,DAO实现和事务策略等形式与Hibernate,JDO 和iBATIS SQL Maps集成。利用众多的翻转控制方便特性来全而支持,解决了许多典型的Hibernate集成问题。所有这些全部遵从Spring通用事务处理和通用数据访问对象异常等级规范。

灵活的基于核心Spring功能的MVC网页应用程序框架。开发者通过策略接口将拥有对该框架的高度控制,因而该框架将适应于多种呈现(VIEW)技术,例如Jsp FreeMarker,Velocity,Tiles,iText以及POI。值得注意的是,Spring中间层可以轻易地结合于任何基于MVC框架的网页层,例如Struts,WebWork,或

Tapestry,提供诸如事务管理等服务的而向方而编程框架。

在设计应用程序简洁明了的框架结构Model时,MVC模式(例如struts)通常难于给出一个简洁明了的框架结构。Spring却具有能够让这部分上作变得简单的能力。程序开发员们可以使用Spring的JDBC抽象层重新设计那些复杂的框架结构。

2.2Struts技术介绍

Struts项目是Apache软件基金会(ASF)赞助的一个开源项日。它最初是Jakarta项目中的一个子项目,并在2004年3月成为ASF的顶级项目。它通过采用Java Servlet/JSP技术,实现了基于Java EE Web应用的Model-View-Controller 〔MVC〕设计模式的应用框架(web Framework),是MVC经典设计模式中的一个经典产品。

MVC结构在Struts中,已经由一个名为ActionServlet的Servlet充当控制器(Controller)的角色,根据描述模型、视图、控制器对应关系的struts-config.xml 的配置文件,转发视图(view)的请求,组装响应数据模型(Model)。在MVC的模型(Model)部分,经常划分为两个主要子系统(系统的内部数据状态与改变数据状态的逻辑动作),这两个概念子系统分别具体对应struts里的ActionForm与Action 两个需要继承实现超类。在这里,Struts可以与各种标准的数据访问技术结合在一起,包括Enterprise Java Bean(EJB),JDBC与JNDL。在struts的视图(view)端,除了使用标准的Java Server Pages(JSP)以外,还提供了大量的标签库使用,同时也可以与其他表现层组件技术(产品)进行整合,比如XSLT等。通过应用struts的框架,最终用户可以把大部分的关注点放在自己的业务逻辑(Action)与映射关系的配置文件(struts-config.xml)中。

发展历程在JavaEE的Web应用发展的初期,除了使用Servlet技术以外,普遍是在JSP的源代码中,采用HTML与java代码混合的方式进行开发。因为这两种方式不可避免的要把表现与业务逻辑代码混合在一起,都给前期开发与后期维护带来巨大的复杂度。为了摆脱上述的约束与局限,把业务逻辑代码从表现层中清晰的分离出来,2000年,CraigMcClanahan采用了MVC的设计模式开发Struts。后来该框架产品一度被认为是最广泛、最流行Java的WEB应用框架。

2006年,Webwork与Struts这两个优秀的Java EEweb框架(Web FrameWork)的团体,决定合作共同开发一个新的,整合了WebWork与Struts优点,并且更加优雅、扩展性更强的框架,命名为“Struts2 ",原Struts的1.x版本产品称为“Struts1”至此,Struts项目并行提供与维护两个主要版本的框架产品一一Struts1与Struts2。很多开发人员认为Shuts目前尚不成熟,应用的成本较高。附带的一

点点建议:Struts的优点主要集中体现在两个方而:Taglib和页而异航。Taglib是Struts的标记库,灵活动用,能大大提高开发效率。Struts这个名字来源于建筑和旧式飞机中使用的支持金属架。它的目的是为了减少在运用MVC设计模型来开发java应用的时间。你仍然需要学习和应用该架构,不过将可以完成其中一些繁重的工作。Struts跟Tomcat、Turbine等诸多Apache项目一样,是开源软件,这是它的一大优点,使开发者能更深入的了解其内部实现机制。

2.3Hibernate开源框架介绍

Hibernate是一种Java语言下的对象关系映射解决方案。它是使用GNU宽通用公共许可证发行的自由、开源的软件。它为面向对象的领域模型到传统的关系型数据库的映射,提供了一个使用方便的框架。概览它的设计目标是将软件开发人员从大量相同的数据持久层相关编程上作中解放出来。无论是从设计草案还是从一个遗留数据库开始,开发人员都可以采用Hibernate。

Hibernate不仅负责从java类到数据库表的映射(还包括从java数据类型到SQL数据类型的映射),还提供了面向对象的数据查询检索机制,从而极大地缩短的手动处理SQL和JDBC上的开发时间。

.NET上的hibernate

hibernate有个在.NET上的实现版本,称为NHibernate,在https://www.360docs.net/doc/f24858103.html, Entity Framework发表之前,NHibernate是在.NET Framework上经常被使用的ORM实现。

hibernate的架构有三个主要部分组成:

(1). 连接管理:hibernate的连接管理服务提供的数据库连接的有效管理。数据库连接是与数据库进行交互,因为需要大量资源的开放和关闭数据库连接的最昂贵的部分。

(2). 交易管理:事务管理服务提供给用户能够同时执行多个数据库报表。

(3). 对象关系映射:对象关系映射从对象映射模型的数据表示为关系数据模型的技术。这部分是用来休眠选择,插入,更新和删除记录窗体的基础表。当我们传递一个对象到Session.save()的方法时,Hibernate读取该对象的变量的状态,并执行必要的查询。hibernate是很好的工具尽可能对象关系映射的关注,但在连接管理和事务管理方而,它在性能和能力缺乏。所以通常冬眠与其他正在使用的连接管理和事务管理上具。Hibernate提供了使用中的灵活性。它被称为“轻型”的体系结构时,我们只使用对象关系映射的组成部分。而在“全而解决”的体系结构的所有三个组件对象关系映射,连接管理和事务管理)的使用。

原文出处

《Dynamic Web Development Technologies based on JSP》《IEEE国际计算机和信息技术会议纪要(CIT 2010)》

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

液压系统及液压缸-外文翻译

液压传动 第十讲 制动器 力流体动力系统的优秀的特性之一是由电源产生,通过适当的控制和指导,并通过电线传输,就可以轻松转换到几乎任何类型的机械运动所需要用到的地方。使用一个合适的驱动装置,可以获得线性(直线)或者是旋转运动。驱动器是一种转换流体动力机械力和运动的装置。缸、马达和涡轮机是最常见的将流体动力系统应用于驱动设备的类型。这一章描述了各种类型的动作汽缸和他们的应用程序、不同类型的流体汽车和使用流体动力系统的涡轮机。 汽缸 制动汽缸是一种将流体动力转换成线性或直线、力和运动的装置。因为线性运动是沿着一条直线前后移动的往复运动。这种类型的制动器有时被称为一个往复、或线性、电动机。由ram或活塞组成的汽缸在一个圆柱孔内操作。制动汽缸可以安装,以便汽缸被固定在一个固定的结构,ram或活塞被连接到该机制来操作,或者是活塞和ram可能被固定到固定结构,汽缸附加到机械装置来操作。制动汽缸气动和液压系统的设计和操作是类似的。一些变化的ram和活塞式制动汽缸的内容将在后面的段落中描述。 冲压式缸 术语ram和活塞通常可以互换使用。然而,一个冲压式缸通常被认为是一个截面积活塞杆超过一半的截面积活动元件。在大多数这种类型的制动汽缸中,杆和活动元件各占一半。这种类型的活动元件经常被称为柱塞。冲压式缸主要是用来推动而不是拉。一些应用程序需要ram的一部分在平坦的外部来推动或升降单位操作。其他应用程序需要一些机械装置的附件,如一个U型夹或有眼螺栓。冲压式缸的设计在很多其他方面不同,以满足不同应用程序的要求。 单作用千斤顶 单作用千斤顶(如图:10-1)试用力只在一个方向。流体定向的汽缸取代ram 和他外部的弹性元件,将物体举起放在上面。

电力系统继电保护外文翻译

附录 1 电力系统继电保护 1.1方向保护基础 日期,对于远离发电站的用户,为改善其供电可靠性提出了双回线供电的设想。当然,也可以架设不同的两回线给用户供电。在系统发生故障后,把用户切换至任一条正常的线路。但更好的连续供电方式是正常以双回线同时供电。当发生故障时,只断开故障线。图14-1所示为一个单电源、单负载、双回输电线系统。对该系统配置合适的断路器后,当一回线发生故障时,仍可对负载供电。为使这种供电方式更为有效,还需配置合适的继电保护系统,否则,昂贵的电力设备不能发挥其预期的作用。可以考虑在四个断路器上装设瞬时和延时起动继电器。显然,这种类型的继电器无法对所有线路故障进行协调配合。例如,故障点在靠近断路器D的线路端,D跳闸应比B快,反之,B应比D快。显然,如果要想使继电器配合协调,继电保护工程师必须寻求除了延时以外的其他途径。 无论故障点靠近断路器B或D的哪一端,流过断路器B和D的故障电流大小是相同的。因此继电保护的配合必须以此为基础,而不是放在从故障开始启动的延时上。我们观察通过断路器B或D的电流方向是随故障点发生在哪一条线路上变化的。对于A和B之间的线路上的故障,通过断路器B的电流方向为从负载母线流向故障点。对于断路器D,电流通过断路器流向负载母线。在这种情况下,断路器B应跳闸,D不应跳闸。要达到这个目的,我们可在断路器B和D上装设方向继电器,该方向继电器的联接应保证只有当通过它们的电流方向为离开负载母线时才起动。 对于图14-1所示的系统,在断路器B和D装设了方向过流延时继电器后,继电器的配合才能实现。断路器A和C装设无方向的过流延时继电器及瞬时动作的电流继电器。各个继电器整定配合如下:方向继电器不能设置延时,它们只有本身固有的动作时间。A和C的延时过流继电器通过电流整定使它们作为负载母线或负载设备故障的后备保护。断路器A和C的瞬时动作元件通过电流整定使它们在负载母线故障时不动作。于是快速保护可以保护发电机和负载之间线路长度

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技术.主席向该经理询问他的想法.他继续说,他们会持续关注这项技术,如果这

液压系统外文资料翻译

外文资料译文 液压系统 绪论 液压站又称液压泵站,是独立的液压装置。 它按逐级要求供油。并控制液压油流的方向、压力和流量,适用于主机与液压装置可分离的各种液压机械上。 用户购后只要将液压站与主机上的执行机构(油缸或油马达)用油管相连,液压机械即可实现各种规定的动作和工作循环。 液压站是由泵装置、集成块或阀组合、油箱、电气盒组合而成。各部件功能为: 泵装置--上装有电机和油泵,是液压站的动力源,将机械能转化为液压油的压力能。 集成块--由液压阀及通道体组装而成。对液压油实行方向、压力和流量调节。 阀组合--板式阀装在立板上,板后管连接,与集成块功能相同。 油箱--板焊的半封闭容器,上还装有滤油网、空气滤清器等,用来储油、油的冷却及过滤。 电气盒--分两种型式。一种设置外接引线的端子板;一种配置了全套控制电器。 液压站的工作原理:电机带动油泵转动,泵从油箱中吸油供油,将机械能转化为液压站的压力能,液压油通过集成块(或阀组合)实现了方向、压力、流量调节后经外接管路并至液压机械的油缸或油马达中,从而控制液动机方向的变换、力量的大小及速度的快慢,推动各种液压机械做功。 1.1发展历程 我国液压(含液力,下同)、气动和密封件工业发展历程,大致可分为三个阶

段,即:20世纪50年代初到60年代初为起步阶段;60~70年代为专业化生产体系成长阶段;80~90年代为快速发展阶段。其中,液压工业于50年代初从机床行业生产仿苏的磨床、拉床、仿形车床等液压传动起步,液压元件由机床厂的液压车间生产,自产自用。进入60年代后,液压技术的应用从机床逐渐推广到农业机械和工程机械等领域,原来附属于主机厂的液压车间有的独立出来,成为液压件专业生产厂。到了60年代末、70年代初,随着生产机械化的发展,特别是在为第二汽车制造厂等提供高效、自动化设备的带动下,液压元件制造业出现了迅速发展的局面,一批中小企业也成为液压件专业制造厂。1968年中国液压元件年产量已接近20万件;1973年在机床、农机、工程机械等行业,生产液压件的专业厂已发展到100余家,年产量超过100万件,一个独立的液压件制造业已初步形成。这时,液压件产品已从仿苏产品发展为引进技术与自行设计相结合的产品,压力向中、高压发展,并开发了电液伺服阀及系统,液压应用领域进一步扩大。气动工业的起步比液压稍晚几年,到1967年开始建立气动元件专业厂,气动元件才作为商品生产和销售。含橡塑密封、机械密封和柔性石墨密封的密封件工业,50年代初从生产普通O型圈、油封等挤压橡塑密封和石棉密封制品起步,到60年代初,开始研制生产机械密封和柔性石墨密封等制品。70年代,在原燃化部、一机部、农机部所属系统内,一批专业生产厂相继成立,并正式形成行业,为密封件工业的发展成长奠定了基础。 进入80年代,在国家改革开放的方针指引下,随着机械工业的发展,基础件滞后于主机的矛盾日益突出,并引起各有关部门的重视。为此,原一机部于1982年组建了通用基础件工业局,将原有分散在机床、农业机械、工程机械等行业归口的液压、气动和密封件专业厂,统一划归通用基础件局管理,从而使该行业在规划、投资、引进技术和科研开发等方面得到基础件局的指导和支持。从此进入了快速发展期,先后引进了60余项国外先进技术,其中液压40余项、气动7项,经消化吸收和技术改造,现均已批量生产,并成为行业的主导产品。近年来,行业加大了技术改造力度,1991~1998年国家、地方和企业自筹资金总投入共约20多亿元,其中液压16亿多元。经过技术改造和技术攻关,一批主要企业技术水平进一步提高,工艺装备得到很大改善,为形成高起点、专业化、批量生产打下了良好基础。近几年,在国家多种所有制共同发展的方针指引下,不同所有制的中小企业迅猛崛起,呈现出

电力系统毕业论文中英文外文文献翻译

电力系统 电力系统介绍 随着电力工业的增长,与用于生成和处理当今大规模电能消费的电力生产、传输、分配系统相关的经济、工程问题也随之增多。这些系统构成了一个完整的电力系统。 应该着重提到的是生成电能的工业,它与众不同之处在于其产品应按顾客要求即需即用。生成电的能源以煤、石油,或水库和湖泊中水的形式储存起来,以备将来所有需。但这并不会降低用户对发电机容量的需求。 显然,对电力系统而言服务的连续性至关重要。没有哪种服务能完全避免可能出现的失误,而系统的成本明显依赖于其稳定性。因此,必须在稳定性与成本之间找到平衡点,而最终的选择应是负载大小、特点、可能出现中断的原因、用户要求等的综合体现。然而,网络可靠性的增加是通过应用一定数量的生成单元和在发电站港湾各分区间以及在国内、国际电网传输线路中使用自动断路器得以实现的。事实上大型系统包括众多的发电站和由高容量传输线路连接的负载。这样,在不中断总体服务的前提下可以停止单个发电单元或一套输电线路的运作。 当今生成和传输电力最普遍的系统是三相系统。相对于其他交流系统而言,它具有简便、节能的优点。尤其是在特定导体间电压、传输功率、传输距离和线耗的情况下,三相系统所需铜或铝仅为单相系统的75%。三相系统另一个重要优点是三相电机比单相电机效率更高。大规模电力生产的能源有: 1.从常规燃料(煤、石油或天然气)、城市废料燃烧或核燃料应用中得到的 蒸汽; 2.水; 3.石油中的柴油动力。 其他可能的能源有太阳能、风能、潮汐能等,但没有一种超越了试点发电站阶段。 在大型蒸汽发电站中,蒸汽中的热能通过涡轮轮转换为功。涡轮必须包括安装在轴承上并封闭于汽缸中的轴或转子。转子由汽缸四周喷嘴喷射出的蒸汽流带动而平衡地转动。蒸汽流撞击轴上的叶片。中央电站采用冷凝涡轮,即蒸汽在离开涡轮后会通过一冷凝器。冷凝器通过其导管中大量冷水的循环来达到冷凝的效果,从而提高蒸汽的膨胀率、后继效率及涡轮的输出功率。而涡轮则直接与大型发电机相连。 涡轮中的蒸汽具有能动性。蒸汽进入涡轮时压力较高、体积较小,而离开时却压力较低、体积较大。 蒸汽是由锅炉中的热水生成的。普通的锅炉有燃烧燃料的炉膛燃烧时产生的热被传导至金属炉壁来生成与炉体内压力相等的蒸汽。在核电站中,蒸汽的生成是在反应堆的帮助下完成的。反应堆中受控制的铀或盥的裂变可提供使水激化所必需的热量,即反应堆代替了常规电站的蒸汽机。 水电站是利用蕴藏在消遣的能来发电的。为了将这种能转换为功,我们使用了水轮机。现代水轮机可分为两类:脉冲式和压力式(又称反应式)。前者用于重要设备,佩尔顿轮是唯一的类型;对于后者而言,弗朗西斯涡轮或其改进型被广泛采用。 在脉冲式涡轮中,整个水头在到达叶轮前都被转化为动能,因为水是通过喷嘴提供给叶轮的;而在压力式或反应式涡轮中,水通过其四周一系列引导叶版先

液压系统液压传动和气压传动毕业论文中英文资料对照外文翻译文献综述

中英文资料对照外文翻译文献综述 液压系统 液压传动和气压传动称为流体传动,是根据17世纪帕斯卡提出的液体静压力传动原理而发展起来的一门新兴技术,1795年英国约瑟夫?布拉曼(Joseph Braman,1749-1814),在伦敦用水作为工作介质,以水压机的形式将其应用于工业上,诞生了世界上第一台水压机。1905年将工作介质水改为油,又进一步得到改善。 第一次世界大战(1914-1918)后液压传动广泛应用,特别是1920年以后,发展更为迅速。液压元件大约在 19 世纪末 20 世纪初的20年间,才开始进入正规的工业生产阶段。1925 年维克斯(F.Vikers)发明了压力平衡式叶片泵,为近代液压元件工业或液压传动的逐步建立奠定了基础。20 世纪初康斯坦丁?尼斯克(G?Constantimsco)对能量波动传递所进行的理论及实际研究;1910年对液力传动(液力联轴节、液力变矩器等)方面的贡献,使这两方面领域得到了发展。 第二次世界大战(1941-1945)期间,在美国机床中有30%应用了液压传动。应该指出,日本液压传动的发展较欧美等国家晚了近 20 多年。在 1955 年前后 , 日本迅速发展液压传动,1956 年成立了“液压工业会”。近20~30 年间,日本液压传动发展之快,居世界领先地位。 液压传动有许多突出的优点,因此它的应用非常广泛,如一般工业用的塑料加工机械、压力机械、机床等;行走机械中的工程机械、建筑机械、农业机械、汽车等;钢铁工业用的冶金机械、提升装置、轧辊调整装置等;土木水利工程用的防洪闸门及堤坝装置、河床升降装置、桥梁操纵机构等;发电厂涡轮机调速装置、核发电厂等等;船舶用的甲板起重机械(绞车)、船头门、舱壁阀、船尾推进器等;特殊技术用的巨型天线控制装置、测量浮标、升降旋转舞台等;军事工业用的火炮操纵装置、船舶减摇装置、飞行器仿真、飞机起落架的收放装置和方向舵控制装置等。 一个完整的液压系统由五个部分组成,即动力元件、执行元件、控制元件、辅助元

英文文献及翻译:供配电系统(1800字)

供配电系统 摘要:电力系统的基本功能是向用户输送电能。lOkV配电网是连接供电电源与工业、商业及生活用电的枢纽,其网络庞大及复杂。对于所有用户都期望以最低的价格买到具有高度可靠性的电能。然而,经济性与可靠性这两个因素是互相矛盾的。要提高供电网络的可靠性就必须增加网络建设投资成本。但是,如果提高可靠性使用户停电损失的降低小于用于提高可靠性所增加的投资,那么这种建设投资就没有价值了。通过计算电网的投资和用户停电的损失,最终可找到一个平衡点,使投资和损失的综合经济性最优。 关键词:供配电,供电可靠性,无功补偿,负荷分配 1 引言 电力体制的改革引发了新一轮大规模的电力建设热潮从而极大地推动了电力技术革命新技术新设备的开发与应用日新月异特别是信息技术与电力技术的结合在很大程度上提高了电能质量和电力供应的可靠性由于技术的发展又降低了电力建设的成本进而推动了电网设备的更新换代本文就是以此为契机以国内外配电自动化中一些前沿问题为内容以配电自动化建设为背景对当前电力系统的热点技术进行一些较深入的探讨和研究主要完成了如下工作. (1)提出了配电自动化建设的两个典型模式即―体化模式和分立化模式侧重分析了分立模式下的配电自动化系统体系结构给出了软硬件配置主站选择管理模式最佳通讯方式等是本文研究的前提和实现平台. (2)针对配电自动化中故障测量定位与隔离以及供电恢复这一关键问题分析了线路故障中电压电流等电量的变化导出了相间短路工况下故障定位的数学描述方程并给出了方程的解以及故障情况下几个重要参数s U& s I& e I& 选择表通过对故障的自动诊断与分析得出了优化的隔离和恢复供电方案自动实现故障快速隔离与网络重构减少了用户停电范围和时间有效提高配网供电可靠性文中还给出了故障分段判断以及网络快速重构的软件流程和使用方法. (3)状态估计是实现配电自动化中关键技术之一本文在阐述状态估计方法基础上给出了不良测量数据的识别和结构性错误的识别方法针对状态估计中数据对基于残差的坏数据检测和异常以及状态量中坏数据对状态估计的影响及存在的问题提出了状态估计中拓扑错误的一种实用化检测和辩识方法针对窃电漏计电费问题独创性提出一种通过电量突变和异常分析防止窃电的新方法并在潍坊城区配电得到验证. (4)针对配电网负荷预测建模困难参数离散度大以及相关因素多等问题本文在分析常规负荷预测模型及方法基础上引入了气象因素日期类型社会环境影响等参数给出了基于神经网络的电力负荷预测方法实例验证了方法的正确性.

外文文献及翻译----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浏览器不能直接与数据库进行会话。即使它能够做到这一点,为了安全上的考虑,我们也不希望让它这么做。对应大多数

外文翻译- 液压系统概述

附录: 外文资料与中文翻译 外文资料: Hydraulic System Hydraulic presser drive and air pressure drive hydraulic fluid as the transmission is made according to the 17th century, Pascal's principle of hydrostatic pressure to drive the development of an emerging technology, the United Kingdom in 1795 ? Braman Joseph (Joseph Braman ,1749-1814), in London water as a medium to form hydraulic press used in industry, the birth of the world's first hydraulic press. Media work in 1905 will be replaced by oil-water and further improved. After the World War I (1914-1918) ,because of the extensive application of hydraulic transmission, espec- ially after 1920, more rapid development. Hydraulic components in the late 19th century about the early 20th century, 20 years, only started to enter the formal phase of industrial production. 1925 Vickers (F. Vikers) the invention of the pressure balanced vane pump, hydraulic components for the modern industrial or hydraulic transmission of the gradual establishment of the foundation. The early 20th century G ? Constantimscofluct- uations of the energy carried out by passing theoretical and practical research; in 1910 on the hydraulic trans- mission (hydraulic coupling, hydraulic torque converter, etc.) contributions, so that these two areas of develo- pment. The Second World War (1941-1945) period, in the United States 30% of machine tool applications in the hydraulic transmission. It should be noted that the development of hydraulic transmission in Japan than Europe

电气工程外文翻译

毕业设计(论文)外文资料翻译 学院:电气信息学院 专业:电气工程及其自动化 姓名:郭骥翔 学号: 081001227 外文出处: Adaptive torque control of variable speed wind turbines 附件: 1.外文资料翻译译文;2.外文原文。 指导教师评语: 签名: 年月日(用外文写)

附件1:外文资料翻译译文 多种风力涡轮机的适应性转矩控制 4.5 使用SymDyn进行仿真 所有先前所描述的模拟是使用SimInt来演示的,其中,如前所述,包括唯一的转子角速度自由度,与复杂的仿真工具比,如SymDyn和FAST,他能够更快的运行。然而,为了确认目的,与其他更流行的仿真工具比较SimInt在适应运行上的增益是很有价值的。适应性的增加并不是期望它能够同等的适应每一个仿真工具,因为每个仿真工具都有其独到的涡轮机模型。但是如果每个涡轮机的造型都相同,如同本例,那么在SimInt 和SymDyn中则有着基本相似的适应性增益(CART)。在数据4-10中,这种相似性被明显的显示出来。 SimInt和SymDyn仿真工具都是由零时刻开始,而且大多数参数初值都相同,如M,角速度等。然而,尽管这两个涡轮机模型都设立了最佳转矩控制M*,但是CP表面却有着不同程度的峰值。因此为了使初始过程大致相同,初始Pfavg值应有相同的最大比例,而不是相同的绝对值。在显示标准化M值4-10的上图中,显示了合理的类似数据。但在30到60小时后,仿真工具的适应性增益开始出现分歧。但在此之后,他们再次互相接近,在从模拟开始100小时到模拟结束这段时间,他们保持基本重合。从下图中也可以清楚的观察出,每个仿真工具都在调整他们的增益M,并采集最大输出功率。 尽管SimInt仿真速度差不多是SymDyn仿真速度的五倍,在图4-10中所显示的SymDyn 数据是唯一一个可以验证适应性增益法则的模拟工具。在这个展示了两个模拟工具合理

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

液压系统外文文献翻译、中英文翻译、外文文献翻译

附录 Hydraulic System Hydraulic presser drive and air pressure drive hydraulic fluid as the transmission is made according to the 17th century, Pascal's principle of hydrostatic pressure to drive the development of an emerging technology, the United Kingdom in 1795 ?Barman Joseph (Joseph Barman, 1749-1814), in London water as a medium to form hydraulic press used in industry, the birth of the world's first hydraulic press. Media work in 1905 will be replaced by oil-water and further improved. After the World War I (1914-1918) ,because of the extensive application of hydraulic transmission, especially after 1920, more rapid development. Hydraulic components in the late 19th century about the early 20th century, 20 years, only started to enter the formal phase of industrial production. 1925 Vickers (F. Vickers) the invention of the pressure balanced vane pump, hydraulic components for the modern industrial or hydraulic transmission of the gradual establishment of the foundation. The early 20th century G ? Constantia scofluctuations of the energy carried out by passing theoretical and practical research; in 1910 on the hydraulic trans- mission (hydraulic coupling, hydraulic torque converter, etc.) contributions, so that these two areas of development. The Second World War (1941-1945) period, in the United States 30% of machine tool applications in the hydraulic transmission. It should be noted that the development of hydraulic transmission in Japan than Europe and the United States and other countries for

电力系统负荷预测及方法外文翻译.doc

电力系统负荷预测及方法(外文翻译)

Power system load forecasting methods and characteristics of Abstract: The load forecasting in power system planning and operation play an important role, with obvious economic benefits, in essence, the electricity load forecasting market demand forecast. In this paper, a systematic description and analysis of a variety of load forecasting methods and characteristics and that good load forecasting for power system has become an important means of modern management. Keywords: power system load forecasting electricity market construction Planning 1.Introduction Load forecasting demand for electricity from a known starting to consider the political, economic, climate and other related factors, the future demand for electricity to make predictions. Load forecast includes two aspects: on the future demand (power) projections and future electricity consumption (energy) forecast.

电力系统外文英语文献资料

Electric Power System Electrical power system refers to remove power and electric parts of the part,It includes substation, power station and distribution. The role of the power grid is connected power plants and users and with the minimum transmission and distribution network disturbance through transport power, with the highest efficiency and possibility will voltage and frequency of the power transmission to the user fixed .Grid can be divided into several levels based on the operating voltage transmission system, substructure, transmission system and distribution system, the highest level of voltage transmission system is ZhuWangJia or considered the high power grids. From the two aspects of function and operation, power can be roughly divided into two parts, the transmission system and substation. The farthest from the maximum output power and the power of the highest voltage grade usually through line to load. Secondary transmission usually refers to the transmission and distribution system is that part of the middle. If a plant is located in or near the load, it might have no power. It will be direct access to secondary transmission and distribution system. Secondary transmission system voltage grade transmission and distribution system between voltage level. Some systems only single second transmission voltage, but usually more than one. Distribution system is part of the power system and its retail service to users, commercial users and residents of some small industrial users. It is to maintain and in the correct voltage power to users responsible. In most of the system, Distribution system accounts for 35% of the total investment system President to 45%, and total loss of system of the half . More than 220kv voltage are usually referred to as Ultra high pressure, over 800kv called high pressure, ultra high voltage and high pressure have important advantages, For example, each route high capacity, reduce the power needed for the number of transmission. In as high voltage to transmission in order to save a conductor material seem desirable, however, must be aware that high voltage transmission can lead to transformer, switch equipment and other instruments of spending increases, so, for the voltage transmission to have certain restriction, allows it to specific circumstances in economic use. Although at present, power transmission most is through the exchange of HVDC transmission, and the growing interest in, mercury arc rectifier and brake flow pipe into the ac power generation and distribution that change for the high voltage dc transmission possible.

相关文档
最新文档