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技術,並將其作爲您現有工作的補充(提升)。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章