Servlet学习笔记 - Servlet的概述

1、前言

  本文来至Oracle官方文档的内容《Java Servlet Technology Overview》,翻译出来以便后续更好的阅读,因第一次尝试翻译,如有不到之处请见谅。

2、Java Servlet Technology Overview (Java Servlet技术的概述)

  Servlets are the Java platform technology of choice for extending and enhancing Web servers. Servlets provide a component-based, platform-independent method for building Web-based applications, without the performance limitations of CGI programs. And unlike proprietary server extension mechanisms (such as the Netscape Server API or Apache modules), servlets are server- and platform-independent. This leaves you free to select a “best of breed” strategy for your servers, platforms, and tools.

  Servlet技术是Java平台为扩展和增强Web应用而提供的解决方案。Servlet技术提供了一种基于组件化且可跨平台的Web应用开发方式,这种方法没有CGI的性能限制。不像一些专有服务的扩展机制(比如the Netscape Server API 或 Apache 模块),因为Servlet技术是一种与平台无关的技术。Servlet技术的平台无关性,让开发者可以在实际工作中根据自己的意愿选择使用servers, platforms, 和 tools的组合方式。

  Servlets have access to the entire family of Java APIs, including the JDBC API to access enterprise databases. Servlets can also access a library of HTTP-specific calls and receive all the benefits of the mature Java language, including portability, performance, reusability, and crash protection.

  Servlet技术可以使用整个Java体系中的API接口,比如使用JDBC API来访问企业级数据库。Servlet技术还可以访问HTTP特定的调用库,并且可以获得Java语言的所有好处,包括可移植性、性能、可重用性和崩溃保护。

  Today servlets are a popular choice for building interactive Web applications. Third-party servlet containers are available for Apache Web Server, Microsoft IIS, and others. Servlet containers are usually a component of Web and application servers, such as BEA WebLogic Application Server, IBM WebSphere, Sun Java System Web Server, Sun Java System Application Server, and others.

  现在Servlet技术已经成为了构建交互式Web应用中一种受欢迎的选择。现在有很多第三方的Servlet 容器可以使用,比如Apache Web Server、Microsoft IIS等。Servlet容器,通常作为Web应用服务器的一个组件或模块存在,比如BEA WebLogicIBM WebSphere、Sun Java System Web Server、Sun Java System Application Server等服务器。

  You might want to check out the latest information on JavaServer Pages (JSP) technology. JSP technology is an extension of the servlet technology created to support authoring of HTML and XML pages. It makes it easier to combine fixed or static template data with dynamic content. Even if you’re comfortable writing servlets, there are several compelling reasons to investigate JSP technology as a complement to your existing work.

  您可能想要查看关于JSP技术的最新消息。JSP技术是Servlet技术的一种扩展,用来支持HTML和XML页面的编写。JSP技术可以使得固定或静态模板数据与动态内容相结合变得更加容易。即使您乐意编写servlet程序,这里也有令人不可抗拒的理由,来让你了解学习JSP技术,并将其作为您现有工作的补充(提升)。

发布了71 篇原创文章 · 获赞 3 · 访问量 5260

猜你喜欢

转载自blog.csdn.net/hou_ge/article/details/104679849