Servlets

From Javapedia

Jump to: navigation, search

A servlet is a Java class that receives a request and generates a response based on that request. The most common type of servlet is an HttpServlet which receives an HTTP request from a client browser such as Internet Explorer and generates an HTTP response in the form of a web page.

The basic servlet package defines Java objects to represent servlet requests and responses, as well as objects to reflect the servlet's configuration parameters and execution environment. The package javax/servlet/http defines HTTP-specific subclasses of the generic servlet elements, including session management objects that track multiple requests and responses between the Web server and a client. Servlets may be packaged in a WAR file as a Web application.

Personal tools