Duke's Bookstore Examples
In Chapters 11 through 22 a common example--Duke's Bookstore--is used to illustrate the elements of Java Servlet technology, JavaServer Pages technology, the JSP Standard Tag Library, and JavaServer Faces technology. The example emulates a simple online shopping application. It provides a book catalog from which users can select books and add them to a shopping cart. Users can view and modify the shopping cart. When 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
>/j2eetutorial14/examples/web/bookstore/
. The common classes are packaged into a JAR. To create thebookstore
library JAR, follow these steps:
- Make sure you have set up your environment properly, as described in About the Examples.
- In a terminal window, go to
<
INSTALL
>/j2eetutorial14/examples/web/bookstore/
.- Run
asant
build
to compile the bookstore files.- Run
asant
package-bookstore
to create a library namedbookstore.jar
in<
INSTALL
>/j2eetutorial14/examples/bookstore/dist/
.The next section describes how to create the bookstore database tables and resources required to run the examples.