Dissecting the BasicServlet

Now that you have the BasicServlet installed and running, let's take a closer look at each of its integral parts. We will be examining the location where the servlet fits into the framework, methods the servlet implements, and the objects being used by the servlet.

Where Does the BasicServlet Fit into the Servlet Framework?

The first thing we are going to look at is where the BasicServlet fits into the servlet framework. This servlet extends the HttpServlet class. The HttpServlet class is an abstract class that simplifies writing HTTP servlets. It extends the GenericServlet class and provides the functionality for handling HTTP protocol-specific requests. The BasicServlet overrides four of its inherited methods. ...

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.