A Java servlet is a platform-independent web application component that is hosted in a servlet container. Servlets communicate with web clients using a request/response model managed by a servlet container, such as Apache Tomcat. When the user submits a request to the server (i.e., clicks on the link in the browser), the servlet container will accept the request. The servlet container then checks the servlets deployed on it, locates the one that should handle the incoming request (based on the request URL and servlet mapping), and sends the request to it, wrapped as an instance of the
ServletRequest class. After processing the request, the servlet produces a response in the...
Servlet intro with figure
Share this highlighthttp://www.safaribooksonline.com/a/apache-tomcat-7/16649/