A servlet is a Java program that is run by a Web server. |
Servlets follow a standard servlet API defining the interface between the server and the servlet, and are designed to work within a request/response model. The servlet API is part of the standard extensions of JDK. |
Servlets can provide all the services of standard CGI, but are platform-independent, i.e. they can be used with any server implementing the API. |
More generally, servlets play the role of providing middle-tier services between the client and the back-end applications. |
References:
|
001 Java Servlets 002 Overview of Java Servlets 003 Architectural Roles for Servlets 004 Temporary and Permanent Servlets 005 Using Servlets 006 The Servlet Life Cycle 007 The init method 008 The service method 009 The destroy method 010 Example Servlet (from MageLang) 011 Service method of the Example 012 Servlet Initialization Information 013 Servlet Context Information 014 The Servlet Request parameter 015 Utility classes 016 Generic Servlets 017 HTTPServlet 018 Processing HTTP requests 019 Security Issues 020 Threading Issues 021 Additional Resources