FAQ
History |
Previous Home Next |
Search
Feedback |
DividerDuke'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 theWEB-INF/lib
directory in each version of Duke's Bookstore example. To recreate thebookstore
library JAR:
- In the IDE, mount the filesystem
<
INSTALL
>/j2eetutorial/examples/web/bookstore
.- Expand the
bookstore
node.- Right-click the
bookstore
node and choose Compile.- Create the
bookstore
JAR.
- Right-click the bookstore node and choose NewRight ArrowJAR PackagerRight ArrowJAR Recipe.
- Type
bookstore
for the Recipe Name.- Click Next.
- Select the
cart
,database
,exception
, andmessages
packages and click Add.- Click Next twice.
- Click Generate to generate the JAR manifest.
- Click Finish.
- Right-click the
bookstore
JAR recipe node and choose Compile.- Expand the
bookstore
JAR recipe node.
FAQ
History |
Previous Home Next |
Search
Feedback |
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.