Home


2.5.1 Servlet technology

Servlets are Java classes that specifically handle HTTP requests and responses. A request object is delivered to the service method of a servlet. The service method determines which HTTP operation is required and calls the servlet method that handles that operation. The most common HTTP operations are GET and POST, which are handled by the equivalent servlet methods doGet() and doPost().

Both doGet() and doPost() accept the same two parameters:

An HTTP request object

An HTTP response object

+

Search Tips   |   Advanced Search