In functionality, servlets lie somewhere between Common Gateway Interface (CGI) programs and proprietary server extensions such as the Netscape server API (NSAPI) or Apache modules. Servlets have the following advantages over other server extension mechanisms:
|