On the web server host machine, servlets run under the same process as the web server. |
The web server is responsible for creating an instance of the servlet and invoking standard methods from the interface (in a similar way to a browser invoking methods of an applet). There are three main methods:
|
and two helper methods:
|