Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
220
Chapter 9 Session Tracking
Figure 9 6
Result of OrderPage servlet after several additions and changes to the
order.
Behind the Scenes: Implementing the Shopping
Cart and Catalog Items
Listing 9.6 gives the shopping cart implementation. It simply maintains a
Vector
of orders, with methods to add and update these orders. Listing 9.7
shows the code for the individual catalog item, Listing 9.8 presents the class
representing the order status of a particular item, and Listing 9.9 gives the
catalog implementation.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved