FAQ
History
PreviousHomeNext Search
Feedback
Divider

Duke's Bookstore

In the next 5 chapters, 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 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. 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>/j2eetutorial/examples/web/bookstore. The common classes are packaged into a JAR and already included in the WEB-INF/lib directory in each version of Duke's Bookstore example. To recreate the bookstore library JAR:

  1. In the IDE, mount the filesystem
    <INSTALL>/j2eetutorial/examples/web/bookstore.
  2. Expand the bookstore node.
  3. Right-click the bookstore node and choose Compile.
  4. Create the bookstore JAR.
    1. Right-click the bookstore node and choose NewRight ArrowJAR PackagerRight ArrowJAR Recipe.
    2. Type bookstore for the Recipe Name.
    3. Click Next.
    4. Select the cart, database, exception, and messages packages and click Add.
    5. Click Next twice.
    6. Click Generate to generate the JAR manifest.
    7. Click Finish.
  5. Right-click the bookstore JAR recipe node and choose Compile.
  6. Expand the bookstore JAR recipe node.
Divider
FAQ
History
PreviousHomeNext Search
Feedback
Divider

All of the material in The J2EE Tutorial for the Sun ONE Platform is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.