Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

Duke's Bookstore Examples

In chapters 15, 16, 17, and 18, a common example--Duke's Bookstore--is used to illustrate the elements of Java Servlet technology, JavaServer Pages technology, and the JSP Standard Tag Library. The example emulates a simple online shopping application. It provide a book catalog from which users can select books and add them to a shopping cart. Users can view and modify the shopping cart. Once users are finished shopping, they can purchase the books in the cart.

The Duke's Bookstore examples share common classes and a database schema. These files are located in the directory <INSTALL>/jwstutorial13/examples/web/bookstore/. The common classes are packaged into a JAR. To create the bookstore library JAR:

  1. In a terminal window, go to <INSTALL>/jwstutorial13/examples/web/bookstore/.
  2. Run ant build to compile the bookstore files.
  3. Run ant package-bookstore to create a library named bookstore.jar in <INSTALL>/jwstutorial13/examples/bookstore/dist/.

The next section describes how to create the bookstore database table and server resources required to run the examples.

Divider
Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.