Java EE Servlet
A Java EE Servlet, or servlet for short, lives inside a servlet container, which is usually an application server, for example, Tomcat (https://tomcat.apache.org). When an HTTP request arrives at a server, usually, it will go through a list of filters that perform filtering tasks, for example, authentication, logging, and auditing. And if the request doesn't get returned by any filter, the application server will hand it over to a servlet that is registered to process those requests that contain a URI that matches a certain pattern. Once the servlet finishes processing the request, an HTTP response will be sent back to the client after going through the same set of filters that processed the corresponding HTTP request.
Inside ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access