The Example Servlets
This chapter uses the Duke’s Bookstore application to illustrate the tasks involved in programming servlets. Table 10-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.
Function | Servlet |
---|---|
Enter the bookstore | BookStoreServlet |
Create the bookstore banner | BannerServlet |
Browse the bookstore catalog | CatalogServlet |
Put a book in a shopping cart | CatalogServlet, BookDetailsServlet |
Get detailed information on ... |
Get J2EE™ Tutorial, The 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.