Extending the BookShoppingServlet with BookCheckOutServlet

The BookShoppingServlet that you developed yesterday is a standalone servlet. Now you will extend the functionality of the BookShoppingServlet by writing another servlet, the BookCheckOutServlet. The BookShoppingServlet generates two HTML pages, the Book Listing page and the View Cart page. On the View Cart page, you will add another button, Checkout, next to the Empty Shopping Cart button. When the user clicks the Checkout button, the BookShoppingServlet chains to the BookCheckOutServlet and delegates control to the BookCheckOutServlet. The BookCheckOutServlet generates the Checkout screen that allows the user to fill in credit card details.

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days 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.