Online Book Store

Online book store is a web application to allow users to select books through internet and get them delivered to their doorsteps.

It allows registered users to do the following:

The following table lists operations and associated objects and files.

Operation Files Associated Objects
Login login.html, login.jsp User javabean
Registration of User register.html, register.jsp User javabean
Home Page - Displays shopping cart home.jsp User JavaBean, Cart JavaBean
Updation of user profile and password changeprofile.jsp User JavaBean
Logging out logout.jsp User JavaBean
Browsing available books. browsebooks.jsp none
Querying books on price, title and category querybooks.jsp none
Adding a books to Shopping cart addbook.jsp User Bean,Cart Bean
Finalizing Order home.jsp User Bean,Cart Bean, Order EJB
Displaying previous - Orders History ordershistory.jsp User Bean
Displaying items of an Order orderitems.jsp User Bean
Cancelling an Order deleteorder.jsp, orderitems.jsp User Bean,Cart Bean, Order EJB

The following are the steps to related to be taken to run the existing part of the application :

  1. Download obs.zip and unzip it into webapps directory of Tomcat installation directory.
  2. Make sure you include Oracle driver classes in the classpath of Tomcat - use setClassPath.Bat file for this.
  3. Create account OBS with password OBS in Oracle.
  4. Create required tables in Oracle using TABLES.SQL file.
  5. Make sure Oracle and Tomcat are running.
  6. Build the ejb in Order directory of OBS directory.
  7. Copy order_client.jar from CLIENTCLASSES directory into LIB directory of WEB-INF of OBS.
  8. Run the application using the following url:
       http://localhost:8080/obs
     
  9. You should see login page of the application.