Foreword by the Translator:
Recently, in organizing the Servlet data, I found that I could not find a documentation of the Java Servlet API in Chinese on the internet, and the Java Servlet API instructions attached to a book on JSP were not complete. The 2.1a version of this document was finalized in November of 1998. So I decided to translate a Chinese document (some of which have been omitted from the technical relationship) and interested readers can download the original reading from Http://java.sun.com/products/servlet/2.1/servletspec-2.1.zip.
Java Servlet API Description Documentation (2.1A edition)
Introduction
This is a documentation on the 2.1 Java Servlet API, and as a supplement to this document, you can download the Javadoc format document below http://java.sun.com/products/servlet/index.html.
Who needs to read this document
This document describes the latest version 2.1 of the Java Servlet API. Therefore, this book is also applicable to the servlet developer and the servlet engine developer.
Composition of the Java Servlet API
The Java Servlet API consists of two packages: one is the HTTP package and the other is a generic package that is not supposed to be HTTP. The presence of these two packages also allows the Java Servlet API to adapt to future requests-response protocols.
Both of these packages are described in this document, as well as in the Javadoc documentation just mentioned, and the Javadoc document describes how you should use all of the methods in both packages.
Relevant specifications
You may be interested in the following Internet specifications, which will directly affect the development and execution of the servlet API. You can find all of the RFC specifications mentioned below from Http://info.internet.isi.edu/7c/in-notes/rfc/.cache.
RFC 1738 Uniform Resource Locator (URL)
RFC 1808 related Unified Resource Locator
RFC 1945 Hypertext Transfer Protocol--http/1.0
RFC 2045 Multi-purpose Internet Mail Extensions (Multipurpose Internet Mail Extension Protocol (MIME)) Part I: Internet Information formatting
RFC 2046 Multipurpose Internet Mail Extensions (Multipurpose Internet Mail Extension Protocol (MIME)) Part two: media type
RFC 2047 Multipurpose Internet Mail Extension Protocol (MIME) (Multipurpose Web Mail Extensions) Part III: Information title extension for non-ASCII text
RFC 2048 Multipurpose Internet Mail Extensions (Multipurpose Internet Mail Extension Protocol (MIME)) Part IV: Registration steps
RFC 2049 Multipurpose Internet Mail Extensions (Multipurpose Internet Mail Extension Protocol (MIME)) Part V: Conformance Criteria and examples
RFC 2068 Hypertext Transfer Protocol--http/1.1
RFC 20,691 Extended http: Digest access authentication
RFC 2109 HTTP State management mechanism
RFC 2145 use and interpretation of HTTP version numbers
RFC 2324 Hypertext Coffee Pot Control Protocol (htcpcp/1.0)
The World Wide Web Consortium (http://www.w3.org) manages the specification and implementation of these agreements.