Você está na página 1de 3

Online shopping web portal java project

This is a web application used by a company to sell products through internet. Customer can select and place order for a product, which are then delivered to the customer. Upon the delivery of the product customer is expected to pay. This application is based on the concept of what websites like telebrandsindia.com do.

Major Operations
The following are the major operations of this portal:

Home page where users can see th recent products and categories Search page - where user can search for product based on category, name and price of the products User placing the order for a product User can also modify some details of the order based on order number. User can also cancel the order; provided order has not been dispatched. User can subscribe so that information related to new products is sent to user through email. FAQs - questions and answers related to how to use website.

Technologies and Products used


Tomcat 4.x Oracle8i/Oracle9i Weblogic Server 7.0 Java Server Pages (JSP) Java Beans Enterprise Java Beans

The following table lists operations and associated objects and files. Operation Home page Listing items Files home.jsp , listitems.jsp listitems.jsp Associated Objects UtilBean UtilBean

Displaying details of item in a category Searching for items Details of an item Placing order Modifying or cancelling order Subscription FAQs

items.jsp search.jsp, listitems.jsp itemdetails.jsp ordernow.jsp, placeorder.jsp orderquery.jsp subscribe.jsp faqs.xml, faqs.xsl

UtilBean UtilBean UtilBean UtilBean, OrderBean UtilBean, OrderBean SubscriberBean, Subscriber EJB

The following are the steps to related to be taken to run the existing part of the application :
1. Download 24x7shop.zip and unzip it into webapps directory of Tomcat installation

directory. 2. Make sure you copy classes111.zip ( after renaming it to classes111.jar) or classes12.jar into WEB-INF/lib directory 3. Compile javabeans in WEB-INF/classes/shop directory. Run batch file s.bat before compiling javabeans. You may have to make necessary changes to batch file depending on the directory structure of your system. 4. Also make sure the classpath of Tomcat is changed to include weblogic.jar using setclasspath.cmd in BIN directory of Tomcat. After the change set CLASSPATH in setclasspath.cmd should look like as shown below:
5. 6. 7. 8. rem Set standard CLASSPATH rem Note that there are no quotes as we do not want to introduce random rem quotes into the CLASSPATH set CLASSPATH=%JAVA_HOME %\lib\tools.jar;c:\weblogic\weblogic700\server\lib\weblogic.jar

9. Create account shop with password shop in Oracle Database. If you cannot do this, you can still use SCOTT account wiith TIGER password. 10. Create required tables in Oracle using TABLES.TXT file and also insert some sample data. 11. Place pictures realated to items added to ITEMS table in 24x7shop/pictures directory. This application uses JPG files. 12. Make sure Oracle and Tomcat are running. 13. Start Weblogic Server and create the following

A connection pool with the name shopOracle - It should access Oracle with shop user and shop password A TxDataSource with the name shoporacle and JNDI name shop.oracle

14. Copy examples.properties file from c:\weblogic\weblogic700\samples\server\src directory of Weblogic server to 24x7shop/suscriber 15. Build the ejb in 24x7shop/subscriber directory. 16. Copy subscriber_client.jar from user directory to 24x7shop/WEB-INF/lib 17. Run the application using the following url:
18. http://localhost:8080/24x7shop

19. You should see home page of the application.

Você também pode gostar