What Is A Servlet?: Javax - Servlet Javax - Servlet.http
What Is A Servlet?: Javax - Servlet Javax - Servlet.http
Servlets vs CGI
A typical Servlet
lifecycle
HTTP
Before we can start writing the first Servlet, we need to know some
basics of HTTP ("HyperText Transfer Protocol"), the protocol which is
used by a WWW client (e.g. a browser) to send a request to a Web
Server.
The request data is passed to all methods through the first argument
of type HttpServletRequest (which is a subclass of the more general
ServletRequest class). The response can be created with methods of the
second argument of type HttpServletResponse (a subclass of
ServletResponse).
When you request a URL in a Web Browser, the GET method is used for
the request. A GET request does not have a body (i.e. the body is
empty). The response should contain a body with the response data
and header fields which describe the body (especially Content-Type and
Content-Encoding). When you send an HTML form, either GET or POST
can be used. With a GET request the parameters are encoded in the
URL, with a POST request they are transmited in the body. HTML
editors and upload tools use PUT requests to upload resources to a
Web Server and DELETE requests to delete resources.