The Example Servlets

This chapter uses the Duke's Bookstore application to illustrate the tasks involved in programming servlets. Table 11-1 lists the servlets that handle each bookstore function. Each programming task is illustrated by one or more servlets. For example, BookDetailsServlet illustrates how to handle HTTP GET requests, BookDetailsServlet and CatalogServlet show how to construct responses, and CatalogServlet illustrates how to track session information.

Table 11-1. Duke's Bookstore Example Servlets
FunctionServlet
Enter the bookstoreBookStoreServlet
Create the bookstore bannerBannerServlet
Browse the bookstore catalogCatalogServlet
Put a book in a shopping cartCatalogServlet, BookDetailsServlet
Get detailed information on a specific book ...

Get The J2EE™ Tutorial Second Edition 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.