├── Dump20140522.sql ├── README.md ├── build.xml ├── build ├── generated-sources │ └── ap-source-output │ │ └── entity │ │ ├── Admin_.java │ │ ├── Category_.java │ │ ├── CustomerOrder_.java │ │ ├── Customer_.java │ │ ├── OrderedProductPK_.java │ │ ├── OrderedProduct_.java │ │ └── Product_.java └── web │ ├── META-INF │ └── MANIFEST.MF │ ├── WEB-INF │ ├── classes │ │ ├── .netbeans_automatic_build │ │ ├── .netbeans_update_resources │ │ ├── META-INF │ │ │ └── persistence.xml │ │ ├── com │ │ │ ├── AdminServlet.class │ │ │ ├── BillingServlet.class │ │ │ ├── CategoryServlet.class │ │ │ ├── ConfirmOrderServlet.class │ │ │ ├── LoginServlet.class │ │ │ ├── ProductBean.class │ │ │ ├── RegisterServlet.class │ │ │ ├── ShoppingCartController.class │ │ │ ├── ShoppingCartServlet.class │ │ │ ├── UpdateCart.class │ │ │ ├── ViewProductServlet.class │ │ │ └── cart │ │ │ │ ├── ShoppingCart.class │ │ │ │ └── ShoppingCartItem.class │ │ ├── entity │ │ │ ├── Admin.class │ │ │ ├── Admin.rapt │ │ │ ├── Admin_.class │ │ │ ├── Category.class │ │ │ ├── Category.rapt │ │ │ ├── Category_.class │ │ │ ├── Customer.class │ │ │ ├── Customer.rapt │ │ │ ├── CustomerOrder.class │ │ │ ├── CustomerOrder.rapt │ │ │ ├── CustomerOrder_.class │ │ │ ├── Customer_.class │ │ │ ├── OrderedProduct.class │ │ │ ├── OrderedProductPK.class │ │ │ ├── Product.class │ │ │ ├── Product.rapt │ │ │ └── Product_.class │ │ ├── resouces.res │ │ └── session │ │ │ ├── AbstractFacade.class │ │ │ ├── AdminFacade.class │ │ │ ├── CategoryFacade.class │ │ │ ├── CustomerFacade.class │ │ │ ├── CustomerManager.class │ │ │ ├── CustomerOrderFacade.class │ │ │ ├── OrderManager.class │ │ │ ├── OrderedProductFacade.class │ │ │ ├── ProductFacade.class │ │ │ └── ProductManager.class │ ├── glassfish-web.xml │ ├── jspf │ │ ├── baseFooter.jsp │ │ ├── bottomSlider.jsp │ │ ├── header.jsp │ │ ├── navigation.jsp │ │ ├── topFooter.jsp │ │ └── topSlider.jsp │ ├── view │ │ ├── account.jsp │ │ ├── admin.jsp │ │ ├── billing.jsp │ │ ├── category.jsp │ │ ├── confirmOrder.jsp │ │ ├── confirmation.jsp │ │ ├── login.jsp │ │ ├── register.jsp │ │ ├── shoppingcart.jsp │ │ └── viewProduct.jsp │ └── web.xml │ ├── adminLogin.jsp │ ├── css │ ├── fonts │ │ ├── MyriadPro-Regular.eot │ │ ├── MyriadPro-Regular.svg │ │ ├── MyriadPro-Regular.ttf │ │ ├── MyriadPro-Regular.woff │ │ ├── arialroundedmtstd-extrabold-webfont.eot │ │ ├── arialroundedmtstd-extrabold-webfont.svg │ │ ├── arialroundedmtstd-extrabold-webfont.ttf │ │ ├── arialroundedmtstd-extrabold-webfont.woff │ │ ├── myriadpro-bold-webfont.eot │ │ ├── myriadpro-bold-webfont.svg │ │ ├── myriadpro-bold-webfont.ttf │ │ └── myriadpro-bold-webfont.woff │ ├── images │ │ ├── ADIDAS.jpg │ │ ├── Adidas Beckenbaur.jpg │ │ ├── Adidas Climax Cool Chill.jpg │ │ ├── Adidas Gazelle.jpg │ │ ├── Adidas Lin Redy 4.jpg │ │ ├── Adidas Marathon.jpg │ │ ├── Adidas Scorpio.jpg │ │ ├── NIKE.jpg │ │ ├── Nike Air Max Preview.jpg │ │ ├── Nike Air Max Skyline.jpg │ │ ├── Nike Air Safari.jpg │ │ ├── Nike HyperDunk.jpg │ │ ├── Nike Shox Turbo IX.jpg │ │ ├── Nike Thumb.jpg │ │ ├── Nike Zoom Hyperfuse.jpg │ │ ├── REEBOK.jpg │ │ ├── Reebok Aubergine.jpg │ │ ├── Reebok Exofit.jpg │ │ ├── Reebok Pastel.jpg │ │ ├── Reebok Retro.jpg │ │ ├── Reebok Ultralite.jpg │ │ ├── Reebok Workout.jpg │ │ ├── UMBRO.jpg │ │ ├── Umbro Denstone.jpg │ │ ├── Umbro Diamond.jpg │ │ ├── Umbro Hue.jpg │ │ ├── Umbro Sodry.jpg │ │ ├── Umbro Stadio.jpg │ │ ├── Umbro Velcro.jpg │ │ ├── adminlogo.jpg │ │ ├── arrow.png │ │ ├── back.png │ │ ├── backhover.png │ │ ├── bottom-logo.png │ │ ├── brand-img1.jpg │ │ ├── brand-img2.jpg │ │ ├── brand-img3.jpg │ │ ├── brand-img4.jpg │ │ ├── button-left.png │ │ ├── button-right.png │ │ ├── cart-img1.jpg │ │ ├── cart-img2.jpg │ │ ├── cart-img3.jpg │ │ ├── cart.png │ │ ├── category.png │ │ ├── checkout.png │ │ ├── compare.ico │ │ ├── confirm.png │ │ ├── confirm_header.png │ │ ├── delete.png │ │ ├── favicon.ico │ │ ├── footer-shadow.png │ │ ├── item.png │ │ ├── keys.png │ │ ├── load.png │ │ ├── loading.gif │ │ ├── loading1.gif │ │ ├── logo.png │ │ ├── main-bg.png │ │ ├── nav-bottom.png │ │ ├── new_user.png │ │ ├── post-img.jpg │ │ ├── price-left.png │ │ ├── price-right.png │ │ ├── product-img1.jpg │ │ ├── product-img2.jpg │ │ ├── product-img3.jpg │ │ ├── product-img4.jpg │ │ ├── product-img5.jpg │ │ ├── product-slide1.jpg │ │ ├── product-slide2.jpg │ │ ├── product-slide3.jpg │ │ ├── product-slide4.jpg │ │ ├── product-slide5.jpg │ │ ├── products-slide-left.png │ │ ├── products-slide-right.png │ │ ├── shoes.png │ │ ├── shoesample.jpg │ │ ├── shopping.png │ │ ├── shopping_cart.png │ │ ├── shoppingcart.png │ │ ├── slide-img1.jpg │ │ ├── slide-img2.jpg │ │ ├── slide-img3.jpg │ │ ├── slide-price.png │ │ ├── slider-bg.png │ │ ├── slider-left.png │ │ ├── slider-nav.png │ │ ├── slider-right.png │ │ ├── social-icon1.png │ │ ├── social-icon2.png │ │ ├── social-icon3.png │ │ ├── social-icon4.png │ │ ├── social-icon5.png │ │ ├── social-icon6.png │ │ ├── social-icon7.png │ │ ├── top-nav-left.png │ │ └── top-nav-right.png │ ├── jquery-ui-1.10.1.custom.css │ ├── jquery-ui.css │ ├── jquery.ui.tabs.css │ └── style.css │ ├── demo.jsp │ ├── home.jsp │ └── js │ ├── DD_belatedPNG-min.js │ ├── Myriad_Pro_700.font.js │ ├── countries.js │ ├── cufon-yui.js │ ├── functions.js │ ├── jquery-1.4.2.js │ ├── jquery-1.6.2.min.js │ ├── jquery-1.9.1.js │ ├── jquery-ui.custom.js │ ├── jquery-ui.custom.min.js │ ├── jquery.jcarousel.min.js │ ├── jquery.ui.tabs.js │ ├── jquery.validate.js │ └── tab.html ├── dist └── TrainersDirect.war ├── nbproject ├── ant-deploy.xml ├── build-impl.xml ├── genfiles.properties ├── private │ ├── private.properties │ └── private.xml ├── project.properties └── project.xml ├── setup └── glassfish-resources.xml ├── src ├── conf │ ├── MANIFEST.MF │ └── persistence.xml └── java │ ├── com │ ├── AdminServlet.java │ ├── BillingServlet.java │ ├── CategoryServlet.java │ ├── ConfirmOrderServlet.java │ ├── LoginServlet.java │ ├── ProductBean.java │ ├── RegisterServlet.java │ ├── ShoppingCartController.java │ ├── ShoppingCartServlet.java │ ├── UpdateCart.java │ ├── ViewProductServlet.java │ └── cart │ │ ├── ShoppingCart.java │ │ └── ShoppingCartItem.java │ ├── entity │ ├── Admin.java │ ├── Category.java │ ├── Customer.java │ ├── CustomerOrder.java │ ├── OrderedProduct.java │ ├── OrderedProductPK.java │ └── Product.java │ └── session │ ├── AbstractFacade.java │ ├── AdminFacade.java │ ├── CategoryFacade.java │ ├── CustomerFacade.java │ ├── CustomerManager.java │ ├── CustomerOrderFacade.java │ ├── OrderManager.java │ ├── OrderedProductFacade.java │ ├── ProductFacade.java │ └── ProductManager.java └── web ├── WEB-INF ├── jspf │ ├── baseFooter.jsp │ ├── bottomSlider.jsp │ ├── header.jsp │ ├── navigation.jsp │ ├── topFooter.jsp │ └── topSlider.jsp ├── view │ ├── account.jsp │ ├── admin.jsp │ ├── billing.jsp │ ├── category.jsp │ ├── confirmOrder.jsp │ ├── confirmation.jsp │ ├── login.jsp │ ├── register.jsp │ ├── shoppingcart.jsp │ └── viewProduct.jsp └── web.xml ├── adminLogin.jsp ├── css ├── fonts │ ├── MyriadPro-Regular.eot │ ├── MyriadPro-Regular.svg │ ├── MyriadPro-Regular.ttf │ ├── MyriadPro-Regular.woff │ ├── arialroundedmtstd-extrabold-webfont.eot │ ├── arialroundedmtstd-extrabold-webfont.svg │ ├── arialroundedmtstd-extrabold-webfont.ttf │ ├── arialroundedmtstd-extrabold-webfont.woff │ ├── myriadpro-bold-webfont.eot │ ├── myriadpro-bold-webfont.svg │ ├── myriadpro-bold-webfont.ttf │ └── myriadpro-bold-webfont.woff ├── images │ ├── ADIDAS.jpg │ ├── Adidas Beckenbaur.jpg │ ├── Adidas Climax Cool Chill.jpg │ ├── Adidas Gazelle.jpg │ ├── Adidas Lin Redy 4.jpg │ ├── Adidas Marathon.jpg │ ├── Adidas Scorpio.jpg │ ├── NIKE.jpg │ ├── Nike Air Max Preview.jpg │ ├── Nike Air Max Skyline.jpg │ ├── Nike Air Safari.jpg │ ├── Nike HyperDunk.jpg │ ├── Nike Shox Turbo IX.jpg │ ├── Nike Thumb.jpg │ ├── Nike Zoom Hyperfuse.jpg │ ├── REEBOK.jpg │ ├── Reebok Aubergine.jpg │ ├── Reebok Exofit.jpg │ ├── Reebok Pastel.jpg │ ├── Reebok Retro.jpg │ ├── Reebok Ultralite.jpg │ ├── Reebok Workout.jpg │ ├── UMBRO.jpg │ ├── Umbro Denstone.jpg │ ├── Umbro Diamond.jpg │ ├── Umbro Hue.jpg │ ├── Umbro Sodry.jpg │ ├── Umbro Stadio.jpg │ ├── Umbro Velcro.jpg │ ├── adminlogo.jpg │ ├── arrow.png │ ├── back.png │ ├── backhover.png │ ├── bottom-logo.png │ ├── brand-img1.jpg │ ├── brand-img2.jpg │ ├── brand-img3.jpg │ ├── brand-img4.jpg │ ├── button-left.png │ ├── button-right.png │ ├── cart-img1.jpg │ ├── cart-img2.jpg │ ├── cart-img3.jpg │ ├── cart.png │ ├── category.png │ ├── checkout.png │ ├── compare.ico │ ├── confirm.png │ ├── confirm_header.png │ ├── delete.png │ ├── favicon.ico │ ├── footer-shadow.png │ ├── item.png │ ├── keys.png │ ├── load.png │ ├── loading.gif │ ├── loading1.gif │ ├── logo.png │ ├── main-bg.png │ ├── nav-bottom.png │ ├── new_user.png │ ├── post-img.jpg │ ├── price-left.png │ ├── price-right.png │ ├── product-img1.jpg │ ├── product-img2.jpg │ ├── product-img3.jpg │ ├── product-img4.jpg │ ├── product-img5.jpg │ ├── product-slide1.jpg │ ├── product-slide2.jpg │ ├── product-slide3.jpg │ ├── product-slide4.jpg │ ├── product-slide5.jpg │ ├── products-slide-left.png │ ├── products-slide-right.png │ ├── shoes.png │ ├── shoesample.jpg │ ├── shopping.png │ ├── shopping_cart.png │ ├── shoppingcart.png │ ├── slide-img1.jpg │ ├── slide-img2.jpg │ ├── slide-img3.jpg │ ├── slide-price.png │ ├── slider-bg.png │ ├── slider-left.png │ ├── slider-nav.png │ ├── slider-right.png │ ├── social-icon1.png │ ├── social-icon2.png │ ├── social-icon3.png │ ├── social-icon4.png │ ├── social-icon5.png │ ├── social-icon6.png │ ├── social-icon7.png │ ├── top-nav-left.png │ └── top-nav-right.png ├── jquery-ui-1.10.1.custom.css ├── jquery-ui.css ├── jquery.ui.tabs.css └── style.css ├── demo.jsp ├── home.jsp └── js ├── DD_belatedPNG-min.js ├── Myriad_Pro_700.font.js ├── countries.js ├── cufon-yui.js ├── functions.js ├── jquery-1.4.2.js ├── jquery-1.6.2.min.js ├── jquery-1.9.1.js ├── jquery-ui.custom.js ├── jquery-ui.custom.min.js ├── jquery.jcarousel.min.js ├── jquery.ui.tabs.js ├── jquery.validate.js └── tab.html /README.md: -------------------------------------------------------------------------------- 1 | JavaEE-e-Commerce-Application 2 | ============================= 3 | 4 | FEATURES 5 | 6 | • Display Items for customers and provide easy browsing. 7 | 8 | • Allow customers to add items to a shopping cart. 9 | 10 | • Allow removal of items from the shopping cart. 11 | 12 | • Update items quantities in the shopping cart as customer add item in the cart. 13 | 14 | • Customers can view a summary of all items their quantities and total price in the shopping cart. 15 | 16 | • Enable a customer to place an order and make payment by using fictitious credit card details 17 | 18 | • Allow customer registration 19 | 20 | • Administrative interface is required to allow staff to view and tracks customers order. 21 | 22 | 23 | REQUIREMENTS 24 | 25 | • JDK 7 + Netbeans 7.4 26 | 27 | • GlassFish 4 28 | 29 | • MySQL Workbench 6.1 30 | 31 | 32 | INSTALLATION 33 | 34 | • Unzip the downloaded file. 35 | 36 | • Create a Web Application project in Netbeans and select GlassFish 4 and JavaEE7 as the server and JavaEE version for the server settings 37 | 38 | • Besides the .sql file,Copy all the contents of the extracted file into the newly created project folder. 39 | 40 | • Create a MySQL database named "trainerdb" in Netbeans. 41 | 42 | • Create a new connection in MySQL Workbench with root as username and password. 43 | 44 | • Open the connection and import the .sql file using default schema as "trainerdb". 45 | 46 | • Clean and build the project. 47 | 48 | • Run the project. 49 | 50 | 51 | RESOLVE THE REFERENCING PROBLEMS IF ANY 52 | 53 | • On Netbeans go to Tools --> Options --> Java --> Ant 54 | 55 | • Put the property : 56 | libs.CopyLibs.classpath=[NetbeansInstall]\NetBeans7.4\java\ant\extra\org-netbeans-modules-java-j2seproject-copylibstask.jar 57 | 58 | 59 | 60 | The project is developed, distributed and is made available for free, 61 | I will not be responsible for any loss or damage whatsoever caused resulting into usage of this product, to whomsoever it may concern. 62 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project TrainersDirect. 12 | 13 | 71 | 72 | -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/Admin_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import javax.annotation.Generated; 4 | import javax.persistence.metamodel.SingularAttribute; 5 | import javax.persistence.metamodel.StaticMetamodel; 6 | 7 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 8 | @StaticMetamodel(Admin.class) 9 | public class Admin_ { 10 | 11 | public static volatile SingularAttribute username; 12 | public static volatile SingularAttribute password; 13 | 14 | } -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/Category_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import entity.Product; 4 | import javax.annotation.Generated; 5 | import javax.persistence.metamodel.CollectionAttribute; 6 | import javax.persistence.metamodel.SingularAttribute; 7 | import javax.persistence.metamodel.StaticMetamodel; 8 | 9 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 10 | @StaticMetamodel(Category.class) 11 | public class Category_ { 12 | 13 | public static volatile SingularAttribute id; 14 | public static volatile SingularAttribute name; 15 | public static volatile CollectionAttribute productCollection; 16 | 17 | } -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/CustomerOrder_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import entity.Customer; 4 | import entity.OrderedProduct; 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | import javax.annotation.Generated; 8 | import javax.persistence.metamodel.CollectionAttribute; 9 | import javax.persistence.metamodel.SingularAttribute; 10 | import javax.persistence.metamodel.StaticMetamodel; 11 | 12 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 13 | @StaticMetamodel(CustomerOrder.class) 14 | public class CustomerOrder_ { 15 | 16 | public static volatile SingularAttribute id; 17 | public static volatile SingularAttribute amount; 18 | public static volatile SingularAttribute customerId; 19 | public static volatile CollectionAttribute orderedProductCollection; 20 | public static volatile SingularAttribute confirmationNumber; 21 | public static volatile SingularAttribute dateCreated; 22 | 23 | } -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/Customer_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import entity.CustomerOrder; 4 | import javax.annotation.Generated; 5 | import javax.persistence.metamodel.CollectionAttribute; 6 | import javax.persistence.metamodel.SingularAttribute; 7 | import javax.persistence.metamodel.StaticMetamodel; 8 | 9 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 10 | @StaticMetamodel(Customer.class) 11 | public class Customer_ { 12 | 13 | public static volatile SingularAttribute id; 14 | public static volatile SingularAttribute phone; 15 | public static volatile CollectionAttribute customerOrderCollection; 16 | public static volatile SingularAttribute email; 17 | public static volatile SingularAttribute address; 18 | public static volatile SingularAttribute lastname; 19 | public static volatile SingularAttribute firstname; 20 | public static volatile SingularAttribute password; 21 | public static volatile SingularAttribute city; 22 | public static volatile SingularAttribute country; 23 | 24 | } -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/OrderedProductPK_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import javax.annotation.Generated; 4 | import javax.persistence.metamodel.SingularAttribute; 5 | import javax.persistence.metamodel.StaticMetamodel; 6 | 7 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 8 | @StaticMetamodel(OrderedProductPK.class) 9 | public class OrderedProductPK_ { 10 | 11 | public static volatile SingularAttribute customerOrderId; 12 | public static volatile SingularAttribute productId; 13 | 14 | } -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/OrderedProduct_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import entity.CustomerOrder; 4 | import entity.OrderedProductPK; 5 | import entity.Product; 6 | import javax.annotation.Generated; 7 | import javax.persistence.metamodel.SingularAttribute; 8 | import javax.persistence.metamodel.StaticMetamodel; 9 | 10 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 11 | @StaticMetamodel(OrderedProduct.class) 12 | public class OrderedProduct_ { 13 | 14 | public static volatile SingularAttribute product; 15 | public static volatile SingularAttribute orderedProductPK; 16 | public static volatile SingularAttribute customerOrder; 17 | public static volatile SingularAttribute quantity; 18 | 19 | } -------------------------------------------------------------------------------- /build/generated-sources/ap-source-output/entity/Product_.java: -------------------------------------------------------------------------------- 1 | package entity; 2 | 3 | import entity.Category; 4 | import entity.OrderedProduct; 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | import javax.annotation.Generated; 8 | import javax.persistence.metamodel.CollectionAttribute; 9 | import javax.persistence.metamodel.SingularAttribute; 10 | import javax.persistence.metamodel.StaticMetamodel; 11 | 12 | @Generated(value="EclipseLink-2.5.1.v20130918-rNA", date="2014-05-27T11:43:39") 13 | @StaticMetamodel(Product.class) 14 | public class Product_ { 15 | 16 | public static volatile SingularAttribute id; 17 | public static volatile SingularAttribute price; 18 | public static volatile SingularAttribute quantityAvailable; 19 | public static volatile SingularAttribute description; 20 | public static volatile SingularAttribute lastUpdate; 21 | public static volatile CollectionAttribute orderedProductCollection; 22 | public static volatile SingularAttribute name; 23 | public static volatile SingularAttribute categoryId; 24 | 25 | } -------------------------------------------------------------------------------- /build/web/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/.netbeans_automatic_build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/.netbeans_automatic_build -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/.netbeans_update_resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/.netbeans_update_resources -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | jdbc/trainerdb 5 | false 6 | 7 | 8 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/AdminServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/AdminServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/BillingServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/BillingServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/CategoryServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/CategoryServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/ConfirmOrderServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/ConfirmOrderServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/LoginServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/ProductBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/ProductBean.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/RegisterServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/RegisterServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/ShoppingCartController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/ShoppingCartController.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/ShoppingCartServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/ShoppingCartServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/UpdateCart.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/UpdateCart.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/ViewProductServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/ViewProductServlet.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/cart/ShoppingCart.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/cart/ShoppingCart.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/com/cart/ShoppingCartItem.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/com/cart/ShoppingCartItem.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Admin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Admin.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Admin.rapt: -------------------------------------------------------------------------------- 1 | entity/Admin_.java 2 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Admin_.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Admin_.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Category.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Category.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Category.rapt: -------------------------------------------------------------------------------- 1 | entity/Category_.java 2 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Category_.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Category_.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Customer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Customer.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Customer.rapt: -------------------------------------------------------------------------------- 1 | entity/Customer_.java 2 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/CustomerOrder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/CustomerOrder.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/CustomerOrder.rapt: -------------------------------------------------------------------------------- 1 | entity/CustomerOrder_.java 2 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/CustomerOrder_.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/CustomerOrder_.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Customer_.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Customer_.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/OrderedProduct.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/OrderedProduct.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/OrderedProductPK.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/OrderedProductPK.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Product.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Product.rapt: -------------------------------------------------------------------------------- 1 | entity/Product_.java 2 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/entity/Product_.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/entity/Product_.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/resouces.res: -------------------------------------------------------------------------------- 1 | META-INF/persistence.xml 2 | META-INF/eclipselink-orm.xml 3 | META-INF/orm.xml 4 | -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/AbstractFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/AbstractFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/AdminFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/AdminFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/CategoryFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/CategoryFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/CustomerFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/CustomerFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/CustomerManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/CustomerManager.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/CustomerOrderFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/CustomerOrderFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/OrderManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/OrderManager.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/OrderedProductFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/OrderedProductFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/ProductFacade.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/ProductFacade.class -------------------------------------------------------------------------------- /build/web/WEB-INF/classes/session/ProductManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/WEB-INF/classes/session/ProductManager.class -------------------------------------------------------------------------------- /build/web/WEB-INF/glassfish-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Keep a copy of the generated servlet class' java code. 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /build/web/WEB-INF/jspf/baseFooter.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : baseFooter 3 | Created on : Apr 15, 2014, 11:00:30 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 |
11 |
12 |
    13 |
  • We accept
  • 14 |
  • American Express
  • 15 |
  • VISA
  • 16 |
  • MasterCard
  • 17 |
18 |
19 |

© Sitename.com. Design and Developed by Udoh Itorobong

20 |
 
21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /build/web/WEB-INF/jspf/bottomSlider.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : bottomSlider 3 | Created on : Apr 13, 2014, 12:13:35 PM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 |

Best Products

9 |
    10 | 11 |
  • 12 | Product Image 13 |
    14 |

    ${product.name}

    15 | Product ${product.id} 16 | $${product.price} 17 |
     
    18 |
    19 |
  • 20 |
    21 | 22 |
23 |
 
24 | 25 | -------------------------------------------------------------------------------- /build/web/WEB-INF/jspf/header.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : header 3 | Created on : Apr 13, 2014, 10:17:16 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 35 | -------------------------------------------------------------------------------- /build/web/WEB-INF/jspf/navigation.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : navigation 3 | Created on : Apr 13, 2014, 11:23:19 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 21 | -------------------------------------------------------------------------------- /build/web/WEB-INF/jspf/topFooter.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : footer 3 | Created on : Apr 13, 2014, 12:18:51 PM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 |
10 | 11 |
12 |
13 |

About    TrainersDirect

14 |
15 | IShop Logo 16 |

This is an individual course work for the course M30CDE: Open Systems Application Development. The course work involves developing an JavaEE e-Commerce application.I made use of the following technologies in developing the web application: HTML5, Javascript(JQuery), CSS, JSP, Servlets, EJB ,JPA and JDBC. I employed the MVC architecture for the design of the e-commerce application.

17 |
 
18 |
19 |
20 | 28 |
29 |

Information

30 | 34 |
35 |
36 |

Categories

37 | 43 |
44 |
 
45 |
46 | 47 |
48 | 49 | -------------------------------------------------------------------------------- /build/web/WEB-INF/jspf/topSlider.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : topSlider 3 | Created on : Apr 13, 2014, 11:32:06 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 |
9 | 10 |
11 |
    12 |
  • 13 | Slide Image 14 |
    15 |

    UNRIVALED  TRAINERS

    16 |
    at a price you will love.
    TrainersDirect.
    17 | Explore 18 |
    19 |
  • 20 |
  • 21 | Slide Image 22 |
    23 |

    STYLISH & SLEEK

    24 |
    trainers for everyone.
      TrainersDirect.
    25 | Explore 26 |
    27 |
  • 28 |
  • 29 | Slide Image 30 |
    31 |

    TOP BRANDS

    32 |
    trainers that suits your needs.
    TrainersDirect.
    33 | Explore 34 |
    35 |
  • 36 |
37 |
 
38 |
39 | 40 |
41 |
42 | 43 |
44 | -------------------------------------------------------------------------------- /build/web/WEB-INF/view/account.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : register 3 | Created on : Apr 13, 2014, 3:55:46 PM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 | 11 | Register 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 41 | 42 | 43 | 44 |
45 | 46 | <%@include file="../jspf/header.jsp" %> 47 | 48 | <%@include file="../jspf/navigation.jsp"%> 49 | 50 | <%@include file="../jspf/topSlider.jsp" %> 51 |
52 |
53 |

Registered Customer

54 | 55 |
56 |



57 |
Congratulations! You have successfully created an account with TrainersDirect.

58 | Click here to login 59 |


60 |
61 |
62 |
63 | <%@include file="../jspf/bottomSlider.jsp" %> 64 |
65 |
66 | 67 | 68 | 71 |
72 | <%@include file="../jspf/baseFooter.jsp" %> 73 |
74 | 75 |
76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /build/web/WEB-INF/view/category.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : category 3 | Created on : Apr 14, 2014, 9:59:02 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 | 11 | Category 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | <%@include file="../jspf/header.jsp" %> 30 | 31 | <%@include file="../jspf/navigation.jsp" %> 32 | 33 | <%@include file="../jspf/topSlider.jsp" %> 34 |
35 |
 
36 |
37 |

${selectedCategory.name}

38 | 39 |
40 | 41 | Product Image 42 |
43 |
44 | Price 45 | $${product.price} 46 | 47 |
48 |
49 |
50 |

${product.name}

51 |

Product ${product.id}

52 |
53 |
54 | 55 |
 
56 |
57 |
58 | 59 |
 
60 |
61 | 62 | 63 |
64 | <%@include file="../jspf/bottomSlider.jsp" %> 65 |
66 |
67 | 68 | 69 | 72 |
73 | <%@include file="../jspf/baseFooter.jsp" %> 74 |
75 | 76 |
77 | 78 | 79 | -------------------------------------------------------------------------------- /build/web/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 30 7 | 8 | 9 | 10 | Billing 11 | 12 | Billing 13 | 14 | /billing.jsp 15 | /guest.jsp 16 | GET 17 | 18 | 19 | 20 | CONFIDENTIAL 21 | 22 | 23 | 24 | jdbc/trainerdb 25 | javax.sql.ConnectionPoolDataSource 26 | Container 27 | Shareable 28 | 29 | 30 | -------------------------------------------------------------------------------- /build/web/adminLogin.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : adminLogin 3 | Created on : Apr 22, 2014, 4:50:06 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 8 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 9 | 10 | 11 | 12 | Login 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 41 | 42 | 43 | 44 | 45 |
46 | 47 | <%@include file="WEB-INF/jspf/header.jsp" %> 48 | 49 | <%@include file="WEB-INF/jspf/navigation.jsp" %> 50 | 51 | 52 |
53 |
 
54 | 55 |
56 | 57 |



60 | Account Login: 61 |
62 | 63 | 64 | 65 |
66 |
67 |
68 | 69 | Administrator
70 | login as an administrator



71 |

72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 |
Username:
Password:
${adminInfo}
83 | 84 |



85 |
86 |
87 | 88 |
89 | 90 | 91 | 92 |
93 |
94 |
95 | 96 |
97 | 98 | 101 |
102 | <%@include file="WEB-INF/jspf/baseFooter.jsp" %> 103 |
104 | 105 |
106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /build/web/css/fonts/MyriadPro-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/MyriadPro-Regular.eot -------------------------------------------------------------------------------- /build/web/css/fonts/MyriadPro-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/MyriadPro-Regular.ttf -------------------------------------------------------------------------------- /build/web/css/fonts/MyriadPro-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/MyriadPro-Regular.woff -------------------------------------------------------------------------------- /build/web/css/fonts/arialroundedmtstd-extrabold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/arialroundedmtstd-extrabold-webfont.eot -------------------------------------------------------------------------------- /build/web/css/fonts/arialroundedmtstd-extrabold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/arialroundedmtstd-extrabold-webfont.ttf -------------------------------------------------------------------------------- /build/web/css/fonts/arialroundedmtstd-extrabold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/arialroundedmtstd-extrabold-webfont.woff -------------------------------------------------------------------------------- /build/web/css/fonts/myriadpro-bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/myriadpro-bold-webfont.eot -------------------------------------------------------------------------------- /build/web/css/fonts/myriadpro-bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/myriadpro-bold-webfont.ttf -------------------------------------------------------------------------------- /build/web/css/fonts/myriadpro-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/fonts/myriadpro-bold-webfont.woff -------------------------------------------------------------------------------- /build/web/css/images/ADIDAS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/ADIDAS.jpg -------------------------------------------------------------------------------- /build/web/css/images/Adidas Beckenbaur.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Adidas Beckenbaur.jpg -------------------------------------------------------------------------------- /build/web/css/images/Adidas Climax Cool Chill.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Adidas Climax Cool Chill.jpg -------------------------------------------------------------------------------- /build/web/css/images/Adidas Gazelle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Adidas Gazelle.jpg -------------------------------------------------------------------------------- /build/web/css/images/Adidas Lin Redy 4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Adidas Lin Redy 4.jpg -------------------------------------------------------------------------------- /build/web/css/images/Adidas Marathon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Adidas Marathon.jpg -------------------------------------------------------------------------------- /build/web/css/images/Adidas Scorpio.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Adidas Scorpio.jpg -------------------------------------------------------------------------------- /build/web/css/images/NIKE.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/NIKE.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike Air Max Preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike Air Max Preview.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike Air Max Skyline.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike Air Max Skyline.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike Air Safari.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike Air Safari.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike HyperDunk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike HyperDunk.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike Shox Turbo IX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike Shox Turbo IX.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike Thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike Thumb.jpg -------------------------------------------------------------------------------- /build/web/css/images/Nike Zoom Hyperfuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Nike Zoom Hyperfuse.jpg -------------------------------------------------------------------------------- /build/web/css/images/REEBOK.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/REEBOK.jpg -------------------------------------------------------------------------------- /build/web/css/images/Reebok Aubergine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Reebok Aubergine.jpg -------------------------------------------------------------------------------- /build/web/css/images/Reebok Exofit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Reebok Exofit.jpg -------------------------------------------------------------------------------- /build/web/css/images/Reebok Pastel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Reebok Pastel.jpg -------------------------------------------------------------------------------- /build/web/css/images/Reebok Retro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Reebok Retro.jpg -------------------------------------------------------------------------------- /build/web/css/images/Reebok Ultralite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Reebok Ultralite.jpg -------------------------------------------------------------------------------- /build/web/css/images/Reebok Workout.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Reebok Workout.jpg -------------------------------------------------------------------------------- /build/web/css/images/UMBRO.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/UMBRO.jpg -------------------------------------------------------------------------------- /build/web/css/images/Umbro Denstone.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Umbro Denstone.jpg -------------------------------------------------------------------------------- /build/web/css/images/Umbro Diamond.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Umbro Diamond.jpg -------------------------------------------------------------------------------- /build/web/css/images/Umbro Hue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Umbro Hue.jpg -------------------------------------------------------------------------------- /build/web/css/images/Umbro Sodry.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Umbro Sodry.jpg -------------------------------------------------------------------------------- /build/web/css/images/Umbro Stadio.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Umbro Stadio.jpg -------------------------------------------------------------------------------- /build/web/css/images/Umbro Velcro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/Umbro Velcro.jpg -------------------------------------------------------------------------------- /build/web/css/images/adminlogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/adminlogo.jpg -------------------------------------------------------------------------------- /build/web/css/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/arrow.png -------------------------------------------------------------------------------- /build/web/css/images/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/back.png -------------------------------------------------------------------------------- /build/web/css/images/backhover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/backhover.png -------------------------------------------------------------------------------- /build/web/css/images/bottom-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/bottom-logo.png -------------------------------------------------------------------------------- /build/web/css/images/brand-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/brand-img1.jpg -------------------------------------------------------------------------------- /build/web/css/images/brand-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/brand-img2.jpg -------------------------------------------------------------------------------- /build/web/css/images/brand-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/brand-img3.jpg -------------------------------------------------------------------------------- /build/web/css/images/brand-img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/brand-img4.jpg -------------------------------------------------------------------------------- /build/web/css/images/button-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/button-left.png -------------------------------------------------------------------------------- /build/web/css/images/button-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/button-right.png -------------------------------------------------------------------------------- /build/web/css/images/cart-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/cart-img1.jpg -------------------------------------------------------------------------------- /build/web/css/images/cart-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/cart-img2.jpg -------------------------------------------------------------------------------- /build/web/css/images/cart-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/cart-img3.jpg -------------------------------------------------------------------------------- /build/web/css/images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/cart.png -------------------------------------------------------------------------------- /build/web/css/images/category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/category.png -------------------------------------------------------------------------------- /build/web/css/images/checkout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/checkout.png -------------------------------------------------------------------------------- /build/web/css/images/compare.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/compare.ico -------------------------------------------------------------------------------- /build/web/css/images/confirm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/confirm.png -------------------------------------------------------------------------------- /build/web/css/images/confirm_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/confirm_header.png -------------------------------------------------------------------------------- /build/web/css/images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/delete.png -------------------------------------------------------------------------------- /build/web/css/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/favicon.ico -------------------------------------------------------------------------------- /build/web/css/images/footer-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/footer-shadow.png -------------------------------------------------------------------------------- /build/web/css/images/item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/item.png -------------------------------------------------------------------------------- /build/web/css/images/keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/keys.png -------------------------------------------------------------------------------- /build/web/css/images/load.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/load.png -------------------------------------------------------------------------------- /build/web/css/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/loading.gif -------------------------------------------------------------------------------- /build/web/css/images/loading1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/loading1.gif -------------------------------------------------------------------------------- /build/web/css/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/logo.png -------------------------------------------------------------------------------- /build/web/css/images/main-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/main-bg.png -------------------------------------------------------------------------------- /build/web/css/images/nav-bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/nav-bottom.png -------------------------------------------------------------------------------- /build/web/css/images/new_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/new_user.png -------------------------------------------------------------------------------- /build/web/css/images/post-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/post-img.jpg -------------------------------------------------------------------------------- /build/web/css/images/price-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/price-left.png -------------------------------------------------------------------------------- /build/web/css/images/price-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/price-right.png -------------------------------------------------------------------------------- /build/web/css/images/product-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-img1.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-img2.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-img3.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-img4.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-img5.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-slide1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-slide1.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-slide2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-slide2.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-slide3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-slide3.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-slide4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-slide4.jpg -------------------------------------------------------------------------------- /build/web/css/images/product-slide5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/product-slide5.jpg -------------------------------------------------------------------------------- /build/web/css/images/products-slide-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/products-slide-left.png -------------------------------------------------------------------------------- /build/web/css/images/products-slide-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/products-slide-right.png -------------------------------------------------------------------------------- /build/web/css/images/shoes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/shoes.png -------------------------------------------------------------------------------- /build/web/css/images/shoesample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/shoesample.jpg -------------------------------------------------------------------------------- /build/web/css/images/shopping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/shopping.png -------------------------------------------------------------------------------- /build/web/css/images/shopping_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/shopping_cart.png -------------------------------------------------------------------------------- /build/web/css/images/shoppingcart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/shoppingcart.png -------------------------------------------------------------------------------- /build/web/css/images/slide-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slide-img1.jpg -------------------------------------------------------------------------------- /build/web/css/images/slide-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slide-img2.jpg -------------------------------------------------------------------------------- /build/web/css/images/slide-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slide-img3.jpg -------------------------------------------------------------------------------- /build/web/css/images/slide-price.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slide-price.png -------------------------------------------------------------------------------- /build/web/css/images/slider-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slider-bg.png -------------------------------------------------------------------------------- /build/web/css/images/slider-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slider-left.png -------------------------------------------------------------------------------- /build/web/css/images/slider-nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slider-nav.png -------------------------------------------------------------------------------- /build/web/css/images/slider-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/slider-right.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon1.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon2.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon3.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon4.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon5.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon6.png -------------------------------------------------------------------------------- /build/web/css/images/social-icon7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/social-icon7.png -------------------------------------------------------------------------------- /build/web/css/images/top-nav-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/top-nav-left.png -------------------------------------------------------------------------------- /build/web/css/images/top-nav-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/css/images/top-nav-right.png -------------------------------------------------------------------------------- /build/web/css/jquery.ui.tabs.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery UI Tabs 1.10.1 3 | * http://jqueryui.com 4 | * 5 | * Copyright 2013 jQuery Foundation and other contributors 6 | * Released under the MIT license. 7 | * http://jquery.org/license 8 | * 9 | * http://docs.jquery.com/UI/Tabs#theming 10 | */ 11 | .ui-tabs { 12 | position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ 13 | padding: .2em; 14 | font-size:24px; 15 | } 16 | .ui-tabs .ui-tabs-nav { 17 | margin: 0; 18 | padding: .2em .2em 0; 19 | } 20 | .ui-tabs .ui-tabs-nav li { 21 | list-style: none; 22 | float: left; 23 | position: relative; 24 | top: 0; 25 | margin: 1px .2em 0 0; 26 | border-bottom: 0; 27 | padding: 0; 28 | white-space: nowrap; 29 | } 30 | .ui-tabs .ui-tabs-nav li a { 31 | float: left; 32 | padding: .5em 1em; 33 | text-decoration: none; 34 | } 35 | .ui-tabs .ui-tabs-nav li.ui-tabs-active { 36 | margin-bottom: -1px; 37 | padding-bottom: 1px; 38 | } 39 | .ui-tabs .ui-tabs-nav li.ui-tabs-active a, 40 | .ui-tabs .ui-tabs-nav li.ui-state-disabled a, 41 | .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { 42 | cursor: text; 43 | } 44 | .ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ 45 | .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { 46 | cursor: pointer; 47 | } 48 | .ui-tabs .ui-tabs-panel { 49 | display: block; 50 | border-width: 0; 51 | padding: 1em 1.4em; 52 | background: none; 53 | } 54 | -------------------------------------------------------------------------------- /build/web/home.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : home 3 | Created on : Apr 13, 2014, 9:44:20 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 8 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 9 | 10 | 11 | 12 | Home 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | <%@include file="WEB-INF/jspf/header.jsp" %> 33 | 34 | <%@include file="WEB-INF/jspf/navigation.jsp" %> 35 | 36 | <%@include file="WEB-INF/jspf/topSlider.jsp" %> 37 | 38 |
39 | 40 |
41 |
42 |

Welcome!

43 | Post Image 44 | 45 |

This is an individual course work for the course M30CDE: Open Systems Application Development. The course work involves developing an JavaEE e-Commerce application.I made use of the following technologies in developing the web application: HTML5, Javascript(JQuery), CSS, JSP, Servlets, EJB ,JPA and JDBC. 46 | I employed the MVC architecture for the design of the e-commerce application. Feel free to 47 | contact me if you love my job. 48 |

49 | 50 |
 
51 |
52 |
53 | 54 | 55 | 71 | 72 |
 
73 | 74 |
75 |

Featured Products

76 | 77 |
78 | 79 | Product Image 80 |
81 |
82 | Price 83 | $${product.price} 84 | 85 |
86 |
87 |
88 |

${product.name}

89 |

Product ${product.id}

90 |
91 |
92 | 93 |
 
94 |
95 |
96 | 97 |
 
98 |
99 | 100 | 101 |
102 | <%@include file="WEB-INF/jspf/bottomSlider.jsp" %> 103 |
104 |
105 | 106 | 107 | 110 |
111 | <%@include file="WEB-INF/jspf/baseFooter.jsp" %> 112 |
113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /build/web/js/Myriad_Pro_700.font.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/build/web/js/Myriad_Pro_700.font.js -------------------------------------------------------------------------------- /build/web/js/functions.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $('#slider ul.slider-items').jcarousel({ 3 | 'scroll': 1, 4 | 'auto': 3, 5 | 'wrap': 'both', 6 | initCallback: mycarousel_initCallback, 7 | itemVisibleInCallback: { 8 | onAfterAnimation: function(c, o, i, s) { 9 | jQuery('.slider-nav li').removeClass('active'); 10 | jQuery('.slider-nav li:eq('+ (i-1) +')').addClass('active'); 11 | } 12 | } 13 | }); 14 | 15 | $('#product-slider').jcarousel({ 16 | 'scroll': 1, 17 | 'auto': 3, 18 | 'wrap': 'both' 19 | }); 20 | 21 | $('#navigation li').hover(function(){ 22 | $(this).find('.dd:first').show(); 23 | }, function(){ 24 | $(this).find('.dd:first').hide(); 25 | }); 26 | 27 | $('#navigation li:not(.active) .dd').hover(function(){ 28 | $(this).parent().addClass('pr-active'); 29 | }, function(){ 30 | $(this).parent().removeClass('pr-active'); 31 | }); 32 | 33 | Cufon.replace('.slider-items h2, .slider-items h3, .slider-items h4:not(.short)', { 34 | textShadow: '-1px 1px 1px #000', 35 | letterSpacing: '-2px', 36 | wordSpacing: '3px' 37 | }); 38 | Cufon.replace('.slider-items h4.short', { 39 | letterSpacing: '-1px', 40 | textShadow: '-1px 1px 1px #000' 41 | }); 42 | 43 | if ($.browser.msie && $.browser.version == 6) { 44 | DD_belatedPNG.fix('#wrapper, h1#logo a, .shopping, #top-nav a, #navigation, .dd a, #slider, .button , .button span, .more, .product .price, .price .inner, #product-slider .info, #product-slider .jcarousel-prev, #product-slider .jcarousel-next, #footer, .boxes, .copy, .box-entry img, .social-box img'); 45 | } 46 | }); 47 | 48 | function mycarousel_initCallback(carousel) { 49 | 50 | var _arrows = $('#slider .jcarousel-prev, #slider .jcarousel-next'); 51 | _arrows.hide(); 52 | 53 | $('#slider .shell').hover(function(){ 54 | _arrows.show().addClass('carousel-active'); 55 | }, function(){ 56 | _arrows.hide().removeClass('carousel-active'); 57 | }); 58 | 59 | $('.slider-nav').append('
    '); 60 | $('.slider-items li').each(function(){ 61 | $('.slider-nav ul').append('
  •  
  • '); 62 | }); 63 | 64 | $('.slider-nav').css('margin-left', function(){ 65 | return (-($(this).width() / 2) + 15) + 'px'; 66 | }); 67 | 68 | $('.slider-nav a').bind('click', function() { 69 | carousel.scroll(jQuery.jcarousel.intval((jQuery(this).parent().index()) + 1)); 70 | return false; 71 | }); 72 | }; -------------------------------------------------------------------------------- /build/web/js/tab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | tab demo 6 | 7 | 8 | 9 | 14 | 15 | 16 |
    17 | 21 | 22 |
    23 | 24 |
    25 |
    52 | 53 | 54 | 55 |
    56 |
    this is old user signin tab
    57 | 58 |
    59 | 60 | -------------------------------------------------------------------------------- /dist/TrainersDirect.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/dist/TrainersDirect.war -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=189efd3c 2 | build.xml.script.CRC32=e708b033 3 | build.xml.stylesheet.CRC32=651128d4@1.65.1.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=189efd3c 7 | nbproject/build-impl.xml.script.CRC32=ae64af80 8 | nbproject/build-impl.xml.stylesheet.CRC32=d659eb7a@1.65.1.1 9 | -------------------------------------------------------------------------------- /nbproject/private/private.properties: -------------------------------------------------------------------------------- 1 | deploy.ant.properties.file=C:\\Users\\joseph\\AppData\\Roaming\\NetBeans\\7.4\\config\\GlassFishEE6\\Properties\\gfv3-981624747.properties 2 | j2ee.platform.is.jsr109=true 3 | j2ee.server.domain=C:/Users/joseph/AppData/Roaming/NetBeans/7.4/config/GF_4.0/domain1 4 | j2ee.server.home=C:/Program Files/glassfish-4.0/glassfish 5 | j2ee.server.instance=[C:\\Program Files\\glassfish-4.0\\glassfish;C:\\Program Files\\glassfish-4.0\\glassfish\\domains\\domain1]deployer:gfv3ee6wc:localhost:4848 6 | j2ee.server.middleware=C:/Program Files/glassfish-4.0 7 | javac.debug=true 8 | javadoc.preview=true 9 | selected.browser=SL[/Browsers/FirefoxBrowser 10 | user.properties.file=C:\\Users\\joseph\\AppData\\Roaming\\NetBeans\\7.4\\build.properties 11 | -------------------------------------------------------------------------------- /nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/cart/ShoppingCart.java 7 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/adminLogin.jsp 8 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/WEB-INF/view/admin.jsp 9 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/ConfirmOrderServlet.java 10 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/conf/persistence.xml 11 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/ShoppingCartServlet.java 12 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/entity/Product.java 13 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/home.jsp 14 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/ViewProductServlet.java 15 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/WEB-INF/view/viewProduct.jsp 16 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/UpdateCart.java 17 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/CategoryServlet.java 18 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/AdminServlet.java 19 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/WEB-INF/web.xml 20 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/WEB-INF/view/billing.jsp 21 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/web/WEB-INF/view/shoppingcart.jsp 22 | file:/C:/Users/joseph/Documents/NetBeansProjects/TrainersDirect/src/java/com/ShoppingCartController.java 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=true 3 | annotation.processing.processor.options=-Aeclipselink.canonicalmodel.use_static_factory=false 4 | annotation.processing.processors.list= 5 | annotation.processing.run.all.processors=true 6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 7 | build.classes.dir=${build.web.dir}/WEB-INF/classes 8 | build.classes.excludes=**/*.java,**/*.form 9 | build.dir=build 10 | build.generated.dir=${build.dir}/generated 11 | build.generated.sources.dir=${build.dir}/generated-sources 12 | build.test.classes.dir=${build.dir}/test/classes 13 | build.test.results.dir=${build.dir}/test/results 14 | build.web.dir=${build.dir}/web 15 | build.web.excludes=${build.classes.excludes} 16 | client.urlPart=home.jsp 17 | compile.jsps=false 18 | conf.dir=${source.root}/conf 19 | debug.classpath=${build.classes.dir}:${javac.classpath} 20 | debug.test.classpath=\ 21 | ${run.test.classpath} 22 | display.browser=true 23 | # Files to be excluded from distribution war 24 | dist.archive.excludes= 25 | dist.dir=dist 26 | dist.ear.war=${dist.dir}/${war.ear.name} 27 | dist.javadoc.dir=${dist.dir}/javadoc 28 | dist.war=${dist.dir}/${war.name} 29 | endorsed.classpath=\ 30 | ${libs.javaee-endorsed-api-6.0.classpath} 31 | excludes= 32 | includes=** 33 | j2ee.compile.on.save=true 34 | j2ee.copy.static.files.on.save=true 35 | j2ee.deploy.on.save=true 36 | j2ee.platform=1.7-web 37 | j2ee.platform.classpath=${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar 38 | j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar 39 | j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar 40 | j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar 41 | j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar 42 | j2ee.platform.wsit.classpath= 43 | j2ee.server.type=gfv3ee6 44 | jar.compress=false 45 | javac.classpath= 46 | # Space-separated list of extra javac options 47 | javac.compilerargs= 48 | javac.debug=true 49 | javac.deprecation=false 50 | javac.processorpath=\ 51 | ${javac.classpath}:\ 52 | ${libs.eclipselink.classpath}:\ 53 | ${libs.eclipselinkmodelgen.classpath} 54 | javac.source=1.7 55 | javac.target=1.7 56 | javac.test.classpath=\ 57 | ${javac.classpath}:\ 58 | ${build.classes.dir} 59 | javac.test.processorpath=\ 60 | ${javac.test.classpath} 61 | javadoc.additionalparam= 62 | javadoc.author=false 63 | javadoc.encoding=${source.encoding} 64 | javadoc.noindex=false 65 | javadoc.nonavbar=false 66 | javadoc.notree=false 67 | javadoc.preview=true 68 | javadoc.private=false 69 | javadoc.splitindex=true 70 | javadoc.use=true 71 | javadoc.version=false 72 | javadoc.windowtitle= 73 | lib.dir=${web.docbase.dir}/WEB-INF/lib 74 | persistence.xml.dir=${conf.dir} 75 | platform.active=default_platform 76 | resource.dir=setup 77 | run.test.classpath=\ 78 | ${javac.test.classpath}:\ 79 | ${build.test.classes.dir} 80 | # Space-separated list of JVM arguments used when running a class with a main method or a unit test 81 | # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): 82 | runmain.jvmargs= 83 | source.encoding=UTF-8 84 | source.root=src 85 | src.dir=${source.root}/java 86 | test.src.dir=test 87 | war.content.additional= 88 | war.ear.name=${war.name} 89 | war.name=TrainersDirect.war 90 | web.docbase.dir=web 91 | webinf.dir=web/WEB-INF 92 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.web.project 4 | 5 | 6 | TrainersDirect 7 | 1.6.5 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /setup/glassfish-resources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/conf/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /src/conf/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | jdbc/trainerdb 5 | false 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/java/com/BillingServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package com; 8 | 9 | import entity.Customer; 10 | import java.io.IOException; 11 | import javax.servlet.ServletException; 12 | import javax.servlet.annotation.WebServlet; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | import javax.servlet.http.HttpSession; 17 | 18 | /** 19 | * 20 | * @author Udoh Itorobong 21 | */ 22 | @WebServlet(name = "BillingServlet", urlPatterns = {"/billing.jsp","/guest.jsp"}) 23 | public class BillingServlet extends HttpServlet { 24 | 25 | // 26 | /** * Handles the HTTP GET method. 27 | * 28 | * @param request servlet request 29 | * @param response servlet response 30 | * @throws ServletException if a servlet-specific error occurs 31 | * @throws IOException if an I/O error occurs 32 | */ 33 | @Override 34 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 35 | throws ServletException, IOException { 36 | HttpSession session= request.getSession(); 37 | String userPath = request.getServletPath(); 38 | 39 | if (userPath.equals("/billing.jsp")){ 40 | Customer selectedCustomer = (Customer) session.getAttribute("customer"); 41 | if (selectedCustomer== null){ 42 | request.setAttribute("guest","guest"); 43 | userPath = "/WEB-INF/view/login.jsp"; 44 | } 45 | else{ 46 | userPath = "/WEB-INF/view/billing.jsp"; 47 | } 48 | } 49 | if (userPath.equals("/guest.jsp")){ 50 | userPath = "/WEB-INF/view/billing.jsp"; 51 | 52 | } 53 | try { 54 | request.getRequestDispatcher(userPath).forward(request, response); 55 | } catch (Exception ex) { 56 | ex.printStackTrace(); 57 | 58 | } 59 | 60 | 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /src/java/com/CategoryServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import entity.Category; 9 | import entity.Product; 10 | import java.io.IOException; 11 | import java.util.Collection; 12 | import java.util.Collections; 13 | import java.util.List; 14 | import javax.ejb.EJB; 15 | import javax.servlet.ServletException; 16 | import javax.servlet.annotation.WebServlet; 17 | import javax.servlet.http.HttpServlet; 18 | import javax.servlet.http.HttpServletRequest; 19 | import javax.servlet.http.HttpServletResponse; 20 | import javax.servlet.http.HttpSession; 21 | import session.CategoryFacade; 22 | import session.CustomerFacade; 23 | import session.CustomerOrderFacade; 24 | import session.ProductFacade; 25 | 26 | /** 27 | * 28 | * @author Udoh Itorobong 29 | */ 30 | @WebServlet(name = "CategoryServlet", urlPatterns = {"/category.jsp"}, loadOnStartup = 1) 31 | public class CategoryServlet extends HttpServlet { 32 | 33 | @EJB 34 | private CustomerFacade customerFacade; 35 | 36 | @EJB 37 | private ProductFacade productFacade; 38 | 39 | @EJB 40 | private CategoryFacade categoryFacade; 41 | 42 | @EJB 43 | private CustomerOrderFacade orderFacade; 44 | 45 | @Override 46 | public void init() throws ServletException { 47 | List productList=productFacade.findAll(); // retrieve the product list 48 | Collections.shuffle(productList); // shuffle the product list 49 | getServletContext().setAttribute("products", productList); // store product list in servlet context 50 | getServletContext().setAttribute("users", customerFacade.findAll());// store customer list in servlet context 51 | getServletContext().setAttribute("orders", orderFacade.findAll()); // store order list in servlet context 52 | } 53 | 54 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 55 | // get categoryId from request 56 | Category selectedCategory; 57 | Collection categoryProducts; 58 | HttpSession session = request.getSession(); 59 | 60 | String categoryId = request.getParameter("category"); 61 | 62 | // get selected category i.e It returns a row in the Category Table 63 | selectedCategory = categoryFacade.find(Short.parseShort(categoryId)); 64 | 65 | // place selected category in session scope 66 | session.setAttribute("selectedCategory", selectedCategory); 67 | 68 | // get all products for selected category 69 | categoryProducts = selectedCategory.getProductCollection(); 70 | 71 | // place category products in session scope 72 | session.setAttribute("categoryProducts", categoryProducts); 73 | 74 | String url = "/WEB-INF/view/category.jsp"; 75 | 76 | try { 77 | request.getRequestDispatcher(url).forward(request, response); 78 | } catch (Exception ex) { 79 | ex.printStackTrace(); 80 | } 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /src/java/com/ConfirmOrderServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import java.io.IOException; 9 | import java.io.PrintWriter; 10 | import javax.servlet.ServletException; 11 | import javax.servlet.annotation.WebServlet; 12 | import javax.servlet.http.HttpServlet; 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpServletResponse; 15 | 16 | /** 17 | * 18 | * @author Udoh Itorobong 19 | */ 20 | @WebServlet(name = "ConfirmOrderServlet", urlPatterns = {"/confirmOrder.jsp"}) 21 | public class ConfirmOrderServlet extends HttpServlet { 22 | 23 | @Override 24 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 25 | 26 | String url = "/WEB-INF/view/confirmOrder.jsp"; 27 | try { 28 | request.getRequestDispatcher(url).forward(request, response); 29 | } catch (Exception ex) { 30 | ex.printStackTrace(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/java/com/LoginServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import java.io.IOException; 9 | import javax.servlet.ServletException; 10 | import javax.servlet.annotation.WebServlet; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | import javax.servlet.http.HttpSession; 15 | 16 | /** 17 | * 18 | * @author Udoh Itorobong 19 | */ 20 | @WebServlet(name = "LoginServlet", urlPatterns = {"/login.jsp", "/logout.jsp","/account.jsp"}) 21 | public class LoginServlet extends HttpServlet { 22 | 23 | /** 24 | * Handles the HTTP GET method. 25 | */ 26 | @Override 27 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 28 | HttpSession session = request.getSession(); 29 | String userPath = request.getServletPath(); 30 | 31 | String url = "/home.jsp"; 32 | if (userPath.equals("/login.jsp")) { 33 | url = "/WEB-INF/view/login.jsp"; 34 | } 35 | else if (userPath.equals("/logout.jsp")) { 36 | session.invalidate(); 37 | } 38 | 39 | if (userPath.equals("/account.jsp")) { 40 | url = "/WEB-INF/view/login.jsp"; 41 | } 42 | try { 43 | request.getRequestDispatcher(url).forward(request, response); 44 | } catch (Exception ex) { 45 | ex.printStackTrace(); 46 | } 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/java/com/ProductBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import entity.Customer; 9 | import java.util.Collection; 10 | import javax.ejb.EJB; 11 | import session.CustomerFacade; 12 | 13 | /** 14 | * 15 | * @author Itorobong Sunday 16 | */ 17 | public class ProductBean { 18 | 19 | String categoryId; 20 | String date; 21 | 22 | @EJB 23 | private CustomerFacade customerFacade; 24 | 25 | Collection customers; 26 | 27 | public ProductBean() { 28 | } 29 | 30 | public String getCategoryId() { 31 | return categoryId; 32 | } 33 | 34 | public String getDate() { 35 | return date; 36 | } 37 | 38 | public void setCategoryId(String category) { 39 | String myStr = category.replaceAll("[^\\d]", ""); 40 | this.categoryId = myStr; 41 | 42 | } 43 | 44 | public void setDate(String date) { 45 | 46 | } 47 | 48 | public static void main(String[] args) { 49 | ProductBean bean = new ProductBean(); 50 | bean.setCategoryId("entity.Customer[ id=1 ]"); 51 | System.out.println(bean.categoryId); 52 | bean.setCategoryId("entity.Customer[ id=1 ]"); 53 | System.out.println(bean.categoryId); 54 | bean.setCategoryId("entity.Customer[ id=5 ]"); 55 | System.out.println(bean.categoryId); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/java/com/RegisterServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import java.io.IOException; 9 | import javax.servlet.ServletException; 10 | import javax.servlet.annotation.WebServlet; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | 15 | /** 16 | * 17 | * @author Udoh Itorobong 18 | */ 19 | @WebServlet(name = "RegisterServlet", urlPatterns = {"/register.jsp"}) 20 | public class RegisterServlet extends HttpServlet { 21 | 22 | @Override 23 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 24 | 25 | String url = "/WEB-INF/view/register.jsp"; 26 | try { 27 | request.getRequestDispatcher(url).forward(request, response); 28 | } catch (Exception ex) { 29 | ex.printStackTrace(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/java/com/ShoppingCartServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import java.io.IOException; 9 | import javax.servlet.ServletException; 10 | import javax.servlet.annotation.WebServlet; 11 | import javax.servlet.http.HttpServlet; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | 15 | /** 16 | * 17 | * @author Udoh Itorobong 18 | */ 19 | @WebServlet(name = "ShoppingCartServlet", urlPatterns = {"/shoppingcart.jsp"}) 20 | public class ShoppingCartServlet extends HttpServlet { 21 | 22 | @Override 23 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 24 | 25 | String url = "/WEB-INF/view/shoppingcart.jsp"; 26 | try { 27 | request.getRequestDispatcher(url).forward(request, response); 28 | } catch (Exception ex) { 29 | ex.printStackTrace(); 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/java/com/UpdateCart.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import com.cart.ShoppingCart; 9 | import entity.Product; 10 | import java.io.IOException; 11 | import java.io.PrintWriter; 12 | import java.util.List; 13 | import javax.servlet.ServletException; 14 | import javax.servlet.annotation.WebServlet; 15 | import javax.servlet.http.HttpServlet; 16 | import javax.servlet.http.HttpServletRequest; 17 | import javax.servlet.http.HttpServletResponse; 18 | import javax.servlet.http.HttpSession; 19 | 20 | /** 21 | * 22 | * @author Udoh Itorobong 23 | */ 24 | @WebServlet(name = "UpdateCart", urlPatterns = {"/updateCart.jsp"}) 25 | public class UpdateCart extends HttpServlet { 26 | List products; 27 | Integer productId; 28 | 29 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 30 | HttpSession session = request.getSession(); 31 | ShoppingCart cart = (ShoppingCart) session.getAttribute("cart"); 32 | Product selectedProduct; 33 | String userPath = request.getServletPath(); 34 | 35 | // get input from request 36 | String productid = request.getParameter("productId"); 37 | this.productId=Integer.parseInt(productid); 38 | 39 | String quantity = request.getParameter("quantity"); 40 | String optiondelete = request.getParameter("delete.x"); 41 | String optionupdate = request.getParameter("update.x"); 42 | products = (List) getServletContext().getAttribute("products"); 43 | selectedProduct = findProduct(); 44 | userPath = "/WEB-INF/view/shoppingcart.jsp"; 45 | 46 | if (!productid.isEmpty()) { 47 | if (optionupdate != null) { 48 | cart.update(selectedProduct, quantity); 49 | 50 | 51 | } 52 | if (optiondelete != null) { 53 | quantity="0"; 54 | cart.update(selectedProduct, quantity); 55 | 56 | } 57 | } 58 | 59 | try { 60 | request.getRequestDispatcher(userPath).forward(request, response); 61 | } catch (Exception ex) { 62 | ex.printStackTrace(); 63 | } 64 | 65 | } 66 | 67 | public Product findProduct(){ 68 | Product product= null; 69 | for (int i = 0; i < products.size(); i++) 70 | if (products.get(i).getId() == productId) { 71 | product=products.get(i); 72 | break; 73 | } 74 | return product; 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/java/com/ViewProductServlet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com; 7 | 8 | import entity.Product; 9 | import java.io.IOException; 10 | import java.util.List; 11 | import javax.servlet.ServletException; 12 | import javax.servlet.annotation.WebServlet; 13 | import javax.servlet.http.HttpServlet; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | import javax.servlet.http.HttpSession; 17 | 18 | /** 19 | * 20 | * @author Udoh Itorobong 21 | */ 22 | @WebServlet(name = "ViewProductServlet", urlPatterns = {"/viewProduct.jsp"}) 23 | public class ViewProductServlet extends HttpServlet { 24 | 25 | private Product selectedProduct; 26 | 27 | private List products; 28 | private Integer productId; 29 | 30 | @Override 31 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 32 | HttpSession session = request.getSession(); 33 | String query = request.getQueryString(); 34 | this.productId=Integer.parseInt(query); 35 | 36 | products = (List) getServletContext().getAttribute("products"); 37 | 38 | // get selected product 39 | selectedProduct = findProduct(); 40 | session.setAttribute("selectedProduct", selectedProduct); 41 | 42 | String url = "/WEB-INF/view/viewProduct.jsp"; 43 | 44 | try { 45 | request.getRequestDispatcher(url).forward(request, response); 46 | } catch (Exception ex) { 47 | ex.printStackTrace(); 48 | } 49 | 50 | } 51 | 52 | private Product findProduct(){ 53 | Product product= null; 54 | for (int i = 0; i < products.size(); i++) 55 | if (products.get(i).getId() == productId) { 56 | product=products.get(i); 57 | break; 58 | } 59 | return product; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/java/com/cart/ShoppingCartItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package com.cart; 8 | 9 | import entity.Product; 10 | 11 | /** 12 | * 13 | * @author Udoh Itorobong 14 | */ 15 | public class ShoppingCartItem { 16 | 17 | Product product; 18 | short quantity; 19 | 20 | public ShoppingCartItem(Product product) { 21 | this.product = product; 22 | quantity = 1; 23 | } 24 | 25 | public Product getProduct() { 26 | return product; 27 | } 28 | 29 | public short getQuantity() { 30 | return quantity; 31 | } 32 | 33 | public void setQuantity(short quantity) { 34 | this.quantity = quantity; 35 | } 36 | 37 | public void incrementQuantity() { 38 | quantity++; 39 | } 40 | 41 | public void decrementQuantity() { 42 | quantity--; 43 | } 44 | 45 | public double getTotal() { 46 | double amount = 0; 47 | amount = (this.getQuantity() * product.getPrice().doubleValue()); 48 | return amount; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/java/entity/Admin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package entity; 8 | 9 | import java.io.Serializable; 10 | import javax.persistence.Basic; 11 | import javax.persistence.Column; 12 | import javax.persistence.Entity; 13 | import javax.persistence.Id; 14 | import javax.persistence.NamedQueries; 15 | import javax.persistence.NamedQuery; 16 | import javax.persistence.Table; 17 | import javax.validation.constraints.NotNull; 18 | import javax.validation.constraints.Size; 19 | import javax.xml.bind.annotation.XmlRootElement; 20 | 21 | /** 22 | * 23 | * @author Udoh Itorobong 24 | */ 25 | @Entity 26 | @Table(name = "admin") 27 | @XmlRootElement 28 | @NamedQueries({ 29 | @NamedQuery(name = "Admin.findAll", query = "SELECT a FROM Admin a"), 30 | @NamedQuery(name = "Admin.findByUsername", query = "SELECT a FROM Admin a WHERE a.username = :username"), 31 | @NamedQuery(name = "Admin.findByPassword", query = "SELECT a FROM Admin a WHERE a.password = :password")}) 32 | public class Admin implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | @Id 35 | @Basic(optional = false) 36 | @NotNull 37 | @Size(min = 1, max = 45) 38 | @Column(name = "username") 39 | private String username; 40 | @Basic(optional = false) 41 | @NotNull 42 | @Size(min = 1, max = 45) 43 | @Column(name = "password") 44 | private String password; 45 | 46 | public Admin() { 47 | } 48 | 49 | public Admin(String username) { 50 | this.username = username; 51 | } 52 | 53 | public Admin(String username, String password) { 54 | this.username = username; 55 | this.password = password; 56 | } 57 | 58 | public String getUsername() { 59 | return username; 60 | } 61 | 62 | public void setUsername(String username) { 63 | this.username = username; 64 | } 65 | 66 | public String getPassword() { 67 | return password; 68 | } 69 | 70 | public void setPassword(String password) { 71 | this.password = password; 72 | } 73 | 74 | @Override 75 | public int hashCode() { 76 | int hash = 0; 77 | hash += (username != null ? username.hashCode() : 0); 78 | return hash; 79 | } 80 | 81 | @Override 82 | public boolean equals(Object object) { 83 | // TODO: Warning - this method won't work in the case the id fields are not set 84 | if (!(object instanceof Admin)) { 85 | return false; 86 | } 87 | Admin other = (Admin) object; 88 | if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) { 89 | return false; 90 | } 91 | return true; 92 | } 93 | 94 | @Override 95 | public String toString() { 96 | return "entity.Admin[ username=" + username + " ]"; 97 | } 98 | 99 | } 100 | -------------------------------------------------------------------------------- /src/java/entity/Category.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package entity; 8 | 9 | import java.io.Serializable; 10 | import java.util.Collection; 11 | import javax.persistence.Basic; 12 | import javax.persistence.CascadeType; 13 | import javax.persistence.Column; 14 | import javax.persistence.Entity; 15 | import javax.persistence.GeneratedValue; 16 | import javax.persistence.GenerationType; 17 | import javax.persistence.Id; 18 | import javax.persistence.NamedQueries; 19 | import javax.persistence.NamedQuery; 20 | import javax.persistence.OneToMany; 21 | import javax.persistence.Table; 22 | import javax.validation.constraints.NotNull; 23 | import javax.validation.constraints.Size; 24 | import javax.xml.bind.annotation.XmlRootElement; 25 | import javax.xml.bind.annotation.XmlTransient; 26 | 27 | /** 28 | * 29 | * @author Udoh Itorobong 30 | */ 31 | @Entity 32 | @Table(name = "category") 33 | @XmlRootElement 34 | @NamedQueries({ 35 | @NamedQuery(name = "Category.findAll", query = "SELECT c FROM Category c"), 36 | @NamedQuery(name = "Category.findById", query = "SELECT c FROM Category c WHERE c.id = :id"), 37 | @NamedQuery(name = "Category.findByName", query = "SELECT c FROM Category c WHERE c.name = :name")}) 38 | public class Category implements Serializable { 39 | private static final long serialVersionUID = 1L; 40 | @Id 41 | @GeneratedValue(strategy = GenerationType.IDENTITY) 42 | @Basic(optional = false) 43 | @Column(name = "id") 44 | private Short id; 45 | @Basic(optional = false) 46 | @NotNull 47 | @Size(min = 1, max = 45) 48 | @Column(name = "name") 49 | private String name; 50 | @OneToMany(cascade = CascadeType.ALL, mappedBy = "categoryId") 51 | private Collection productCollection; 52 | 53 | public Category() { 54 | } 55 | 56 | public Category(Short id) { 57 | this.id = id; 58 | } 59 | 60 | public Category(Short id, String name) { 61 | this.id = id; 62 | this.name = name; 63 | } 64 | 65 | public Short getId() { 66 | return id; 67 | } 68 | 69 | public void setId(Short id) { 70 | this.id = id; 71 | } 72 | 73 | public String getName() { 74 | return name; 75 | } 76 | 77 | public void setName(String name) { 78 | this.name = name; 79 | } 80 | 81 | @XmlTransient 82 | public Collection getProductCollection() { 83 | return productCollection; 84 | } 85 | 86 | public void setProductCollection(Collection productCollection) { 87 | this.productCollection = productCollection; 88 | } 89 | 90 | @Override 91 | public int hashCode() { 92 | int hash = 0; 93 | hash += (id != null ? id.hashCode() : 0); 94 | return hash; 95 | } 96 | 97 | @Override 98 | public boolean equals(Object object) { 99 | // TODO: Warning - this method won't work in the case the id fields are not set 100 | if (!(object instanceof Category)) { 101 | return false; 102 | } 103 | Category other = (Category) object; 104 | if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { 105 | return false; 106 | } 107 | return true; 108 | } 109 | 110 | @Override 111 | public String toString() { 112 | return "entity.Category[ id=" + id + " ]"; 113 | } 114 | 115 | } 116 | -------------------------------------------------------------------------------- /src/java/entity/OrderedProduct.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package entity; 8 | 9 | import java.io.Serializable; 10 | import javax.persistence.Basic; 11 | import javax.persistence.Column; 12 | import javax.persistence.EmbeddedId; 13 | import javax.persistence.Entity; 14 | import javax.persistence.JoinColumn; 15 | import javax.persistence.ManyToOne; 16 | import javax.persistence.NamedQueries; 17 | import javax.persistence.NamedQuery; 18 | import javax.persistence.Table; 19 | import javax.validation.constraints.NotNull; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | 22 | /** 23 | * 24 | * @author Udoh Itorobong 25 | */ 26 | @Entity 27 | @Table(name = "ordered_product") 28 | @XmlRootElement 29 | @NamedQueries({ 30 | @NamedQuery(name = "OrderedProduct.findAll", query = "SELECT o FROM OrderedProduct o"), 31 | @NamedQuery(name = "OrderedProduct.findByCustomerOrderId", query = "SELECT o FROM OrderedProduct o WHERE o.orderedProductPK.customerOrderId = :customerOrderId"), 32 | @NamedQuery(name = "OrderedProduct.findByProductId", query = "SELECT o FROM OrderedProduct o WHERE o.orderedProductPK.productId = :productId"), 33 | @NamedQuery(name = "OrderedProduct.findByQuantity", query = "SELECT o FROM OrderedProduct o WHERE o.quantity = :quantity")}) 34 | public class OrderedProduct implements Serializable { 35 | private static final long serialVersionUID = 1L; 36 | @EmbeddedId 37 | protected OrderedProductPK orderedProductPK; 38 | @Basic(optional = false) 39 | @NotNull 40 | @Column(name = "quantity") 41 | private short quantity; 42 | @JoinColumn(name = "product_id", referencedColumnName = "id", insertable = false, updatable = false) 43 | @ManyToOne(optional = false) 44 | private Product product; 45 | @JoinColumn(name = "customer_order_id", referencedColumnName = "id", insertable = false, updatable = false) 46 | @ManyToOne(optional = false) 47 | private CustomerOrder customerOrder; 48 | 49 | public OrderedProduct() { 50 | } 51 | 52 | public OrderedProduct(OrderedProductPK orderedProductPK) { 53 | this.orderedProductPK = orderedProductPK; 54 | } 55 | 56 | public OrderedProduct(OrderedProductPK orderedProductPK, short quantity) { 57 | this.orderedProductPK = orderedProductPK; 58 | this.quantity = quantity; 59 | } 60 | 61 | public OrderedProduct(int customerOrderId, int productId) { 62 | this.orderedProductPK = new OrderedProductPK(customerOrderId, productId); 63 | } 64 | 65 | public OrderedProductPK getOrderedProductPK() { 66 | return orderedProductPK; 67 | } 68 | 69 | public void setOrderedProductPK(OrderedProductPK orderedProductPK) { 70 | this.orderedProductPK = orderedProductPK; 71 | } 72 | 73 | public short getQuantity() { 74 | return quantity; 75 | } 76 | 77 | public void setQuantity(short quantity) { 78 | this.quantity = quantity; 79 | } 80 | 81 | public Product getProduct() { 82 | return product; 83 | } 84 | 85 | public void setProduct(Product product) { 86 | this.product = product; 87 | } 88 | 89 | public CustomerOrder getCustomerOrder() { 90 | return customerOrder; 91 | } 92 | 93 | public void setCustomerOrder(CustomerOrder customerOrder) { 94 | this.customerOrder = customerOrder; 95 | } 96 | 97 | @Override 98 | public int hashCode() { 99 | int hash = 0; 100 | hash += (orderedProductPK != null ? orderedProductPK.hashCode() : 0); 101 | return hash; 102 | } 103 | 104 | @Override 105 | public boolean equals(Object object) { 106 | // TODO: Warning - this method won't work in the case the id fields are not set 107 | if (!(object instanceof OrderedProduct)) { 108 | return false; 109 | } 110 | OrderedProduct other = (OrderedProduct) object; 111 | if ((this.orderedProductPK == null && other.orderedProductPK != null) || (this.orderedProductPK != null && !this.orderedProductPK.equals(other.orderedProductPK))) { 112 | return false; 113 | } 114 | return true; 115 | } 116 | 117 | @Override 118 | public String toString() { 119 | return "entity.OrderedProduct[ orderedProductPK=" + orderedProductPK + " ]"; 120 | } 121 | 122 | } 123 | -------------------------------------------------------------------------------- /src/java/entity/OrderedProductPK.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package entity; 8 | 9 | import java.io.Serializable; 10 | import javax.persistence.Basic; 11 | import javax.persistence.Column; 12 | import javax.persistence.Embeddable; 13 | import javax.validation.constraints.NotNull; 14 | 15 | /** 16 | * 17 | * @author Udoh Itorobong 18 | */ 19 | @Embeddable 20 | public class OrderedProductPK implements Serializable { 21 | @Basic(optional = false) 22 | @NotNull 23 | @Column(name = "customer_order_id") 24 | private int customerOrderId; 25 | @Basic(optional = false) 26 | @NotNull 27 | @Column(name = "product_id") 28 | private int productId; 29 | 30 | public OrderedProductPK() { 31 | } 32 | 33 | public OrderedProductPK(int customerOrderId, int productId) { 34 | this.customerOrderId = customerOrderId; 35 | this.productId = productId; 36 | } 37 | 38 | public int getCustomerOrderId() { 39 | return customerOrderId; 40 | } 41 | 42 | public void setCustomerOrderId(int customerOrderId) { 43 | this.customerOrderId = customerOrderId; 44 | } 45 | 46 | public int getProductId() { 47 | return productId; 48 | } 49 | 50 | public void setProductId(int productId) { 51 | this.productId = productId; 52 | } 53 | 54 | @Override 55 | public int hashCode() { 56 | int hash = 0; 57 | hash += (int) customerOrderId; 58 | hash += (int) productId; 59 | return hash; 60 | } 61 | 62 | @Override 63 | public boolean equals(Object object) { 64 | // TODO: Warning - this method won't work in the case the id fields are not set 65 | if (!(object instanceof OrderedProductPK)) { 66 | return false; 67 | } 68 | OrderedProductPK other = (OrderedProductPK) object; 69 | if (this.customerOrderId != other.customerOrderId) { 70 | return false; 71 | } 72 | if (this.productId != other.productId) { 73 | return false; 74 | } 75 | return true; 76 | } 77 | 78 | @Override 79 | public String toString() { 80 | return "entity.OrderedProductPK[ customerOrderId=" + customerOrderId + ", productId=" + productId + " ]"; 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /src/java/session/AbstractFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import java.util.List; 10 | import javax.persistence.EntityManager; 11 | 12 | /** 13 | * 14 | * @author Udoh Itorobong 15 | * @param 16 | */ 17 | public abstract class AbstractFacade { 18 | private Class entityClass; 19 | 20 | public AbstractFacade(Class entityClass) { 21 | this.entityClass = entityClass; 22 | } 23 | 24 | protected abstract EntityManager getEntityManager(); 25 | 26 | public void create(T entity) { 27 | getEntityManager().persist(entity); 28 | } 29 | 30 | public void edit(T entity) { 31 | getEntityManager().merge(entity); 32 | } 33 | 34 | public void remove(T entity) { 35 | getEntityManager().remove(getEntityManager().merge(entity)); 36 | } 37 | 38 | public T find(Object id) { 39 | return getEntityManager().find(entityClass, id); 40 | } 41 | 42 | public List findAll() { 43 | javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); 44 | cq.select(cq.from(entityClass)); 45 | return getEntityManager().createQuery(cq).getResultList(); 46 | } 47 | 48 | public List findRange(int[] range) { 49 | javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); 50 | cq.select(cq.from(entityClass)); 51 | javax.persistence.Query q = getEntityManager().createQuery(cq); 52 | q.setMaxResults(range[1] - range[0] + 1); 53 | q.setFirstResult(range[0]); 54 | return q.getResultList(); 55 | } 56 | 57 | public int count() { 58 | javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); 59 | javax.persistence.criteria.Root rt = cq.from(entityClass); 60 | cq.select(getEntityManager().getCriteriaBuilder().count(rt)); 61 | javax.persistence.Query q = getEntityManager().createQuery(cq); 62 | return ((Long) q.getSingleResult()).intValue(); 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/java/session/AdminFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.Admin; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class AdminFacade extends AbstractFacade { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | @Override 24 | protected EntityManager getEntityManager() { 25 | return em; 26 | } 27 | 28 | public AdminFacade() { 29 | super(Admin.class); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/session/CategoryFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.Category; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class CategoryFacade extends AbstractFacade { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | @Override 24 | protected EntityManager getEntityManager() { 25 | return em; 26 | } 27 | 28 | public CategoryFacade() { 29 | super(Category.class); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/session/CustomerFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.Customer; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class CustomerFacade extends AbstractFacade { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | @Override 24 | protected EntityManager getEntityManager() { 25 | return em; 26 | } 27 | 28 | public CustomerFacade() { 29 | super(Customer.class); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/session/CustomerManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.Customer; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class CustomerManager { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | // Add business logic below. (Right-click in editor and choose 24 | // "Insert Code > Add Business Method") 25 | 26 | public Customer createCustomer(String firstname, String lastname, String email, String password, String phone, String address, String city, String country) { 27 | Customer customer = new Customer(); 28 | customer.setFirstname(firstname); 29 | customer.setEmail(email); 30 | customer.setPhone(phone); 31 | customer.setAddress(address); 32 | customer.setCity(city); 33 | customer.setPassword(password); 34 | customer.setLastname(lastname); 35 | customer.setCountry(country); 36 | 37 | em.persist(customer); 38 | 39 | return customer; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/java/session/CustomerOrderFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.CustomerOrder; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class CustomerOrderFacade extends AbstractFacade { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | @Override 24 | protected EntityManager getEntityManager() { 25 | return em; 26 | } 27 | 28 | public CustomerOrderFacade() { 29 | super(CustomerOrder.class); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/session/OrderManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import com.cart.ShoppingCart; 10 | import com.cart.ShoppingCartItem; 11 | import entity.Customer; 12 | import entity.CustomerOrder; 13 | import entity.OrderedProduct; 14 | import entity.OrderedProductPK; 15 | import java.math.BigDecimal; 16 | import java.util.Date; 17 | import java.util.List; 18 | import java.util.Random; 19 | import javax.ejb.Stateless; 20 | import javax.persistence.EntityManager; 21 | import javax.persistence.PersistenceContext; 22 | 23 | /** 24 | * 25 | * @author Udoh Itorobong 26 | */ 27 | @Stateless 28 | public class OrderManager { 29 | 30 | @PersistenceContext(unitName = "TrainersDirectPU") 31 | private EntityManager em; 32 | 33 | public int placeOrder(Customer customer, ShoppingCart cart) { 34 | CustomerOrder order = addOrder(customer, cart); 35 | addOrderedItems(order, cart); 36 | return order.getId(); 37 | } 38 | 39 | private CustomerOrder addOrder(Customer customer, ShoppingCart cart) { 40 | // set up customer order 41 | CustomerOrder order = new CustomerOrder(); 42 | order.setCustomerId(customer); 43 | order.setAmount(BigDecimal.valueOf(cart.getTotal())); 44 | 45 | // create confirmation number 46 | Random random = new Random(); 47 | int i = random.nextInt(999999999); 48 | order.setConfirmationNumber(i); 49 | 50 | // create date the order was created 51 | // Timestamp timeStampDate = new Timestamp(System.currentTimeMillis()); 52 | order.setDateCreated(new Date ()); 53 | 54 | em.persist(order); 55 | 56 | return order; 57 | } 58 | 59 | private void addOrderedItems(CustomerOrder order, ShoppingCart cart) { 60 | 61 | em.flush(); 62 | 63 | List items = cart.getItems(); 64 | 65 | // iterate through shopping cart and create OrderedProducts 66 | for (ShoppingCartItem scItem : items) { 67 | 68 | int productId = scItem.getProduct().getId(); 69 | 70 | // set up primary key object 71 | OrderedProductPK orderedProductPK = new OrderedProductPK(); 72 | orderedProductPK.setCustomerOrderId(order.getId()); 73 | orderedProductPK.setProductId(productId); 74 | 75 | // create ordered item using PK object 76 | OrderedProduct orderedItem = new OrderedProduct(orderedProductPK); 77 | 78 | // set quantity 79 | orderedItem.setQuantity(scItem.getQuantity()); 80 | 81 | em.persist(orderedItem); 82 | } 83 | 84 | } 85 | 86 | 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/java/session/OrderedProductFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.OrderedProduct; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class OrderedProductFacade extends AbstractFacade { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | @Override 24 | protected EntityManager getEntityManager() { 25 | return em; 26 | } 27 | 28 | public OrderedProductFacade() { 29 | super(OrderedProduct.class); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/session/ProductFacade.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.Product; 10 | import javax.ejb.Stateless; 11 | import javax.persistence.EntityManager; 12 | import javax.persistence.PersistenceContext; 13 | 14 | /** 15 | * 16 | * @author Udoh Itorobong 17 | */ 18 | @Stateless 19 | public class ProductFacade extends AbstractFacade { 20 | @PersistenceContext(unitName = "TrainersDirectPU") 21 | private EntityManager em; 22 | 23 | @Override 24 | protected EntityManager getEntityManager() { 25 | return em; 26 | } 27 | 28 | public ProductFacade() { 29 | super(Product.class); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/java/session/ProductManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | 7 | package session; 8 | 9 | import entity.Category; 10 | import entity.Product; 11 | import java.math.BigDecimal; 12 | import java.util.Date; 13 | import javax.ejb.Stateless; 14 | import javax.persistence.EntityManager; 15 | import javax.persistence.PersistenceContext; 16 | 17 | /** 18 | * 19 | * @author Udoh Itorobong 20 | */ 21 | @Stateless 22 | public class ProductManager { 23 | @PersistenceContext(unitName = "TrainersDirectPU") 24 | private EntityManager em; 25 | 26 | // Add business logic below. (Right-click in editor and choose 27 | // "Insert Code > Add Business Method") 28 | 29 | public Product createProduct(String name, String description, BigDecimal price, short qty, Category category) { 30 | Product product = new Product(); 31 | product.setName(name); 32 | product.setDescription(description); 33 | product.setPrice(price); 34 | product.setQuantityAvailable(qty); 35 | product.setLastUpdate(new Date()); 36 | product.setCategoryId(category); 37 | 38 | em.persist(product); 39 | 40 | return product; 41 | } 42 | } 43 | 44 | 45 | -------------------------------------------------------------------------------- /web/WEB-INF/jspf/baseFooter.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : baseFooter 3 | Created on : Apr 15, 2014, 11:00:30 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 |
    11 |
    12 |
      13 |
    • We accept
    • 14 |
    • American Express
    • 15 |
    • VISA
    • 16 |
    • MasterCard
    • 17 |
    18 |
    19 |

    © Sitename.com. Design and Developed by Udoh Itorobong

    20 |
     
    21 |
    22 | 23 | 24 | -------------------------------------------------------------------------------- /web/WEB-INF/jspf/bottomSlider.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : bottomSlider 3 | Created on : Apr 13, 2014, 12:13:35 PM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 |

    Best Products

    9 |
      10 | 11 |
    • 12 | Product Image 13 |
      14 |

      ${product.name}

      15 | Product ${product.id} 16 | $${product.price} 17 |
       
      18 |
      19 |
    • 20 |
      21 | 22 |
    23 |
     
    24 | 25 | -------------------------------------------------------------------------------- /web/WEB-INF/jspf/header.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : header 3 | Created on : Apr 13, 2014, 10:17:16 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 35 | -------------------------------------------------------------------------------- /web/WEB-INF/jspf/navigation.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : navigation 3 | Created on : Apr 13, 2014, 11:23:19 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 21 | -------------------------------------------------------------------------------- /web/WEB-INF/jspf/topFooter.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : footer 3 | Created on : Apr 13, 2014, 12:18:51 PM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 |
    10 | 11 |
    12 |
    13 |

    About    TrainersDirect

    14 |
    15 | IShop Logo 16 |

    This is an individual course work for the course M30CDE: Open Systems Application Development. The course work involves developing an JavaEE e-Commerce application.I made use of the following technologies in developing the web application: HTML5, Javascript(JQuery), CSS, JSP, Servlets, EJB ,JPA and JDBC. I employed the MVC architecture for the design of the e-commerce application.

    17 |
     
    18 |
    19 |
    20 | 28 |
    29 |

    Information

    30 | 34 |
    35 |
    36 |

    Categories

    37 | 43 |
    44 |
     
    45 |
    46 | 47 |
    48 | 49 | -------------------------------------------------------------------------------- /web/WEB-INF/jspf/topSlider.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : topSlider 3 | Created on : Apr 13, 2014, 11:32:06 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 |
    9 | 10 |
    11 |
      12 |
    • 13 | Slide Image 14 |
      15 |

      UNRIVALED  TRAINERS

      16 |
      at a price you will love.
      TrainersDirect.
      17 | Explore 18 |
      19 |
    • 20 |
    • 21 | Slide Image 22 |
      23 |

      STYLISH & SLEEK

      24 |
      trainers for everyone.
        TrainersDirect.
      25 | Explore 26 |
      27 |
    • 28 |
    • 29 | Slide Image 30 |
      31 |

      TOP BRANDS

      32 |
      trainers that suits your needs.
      TrainersDirect.
      33 | Explore 34 |
      35 |
    • 36 |
    37 |
     
    38 |
    39 | 40 |
    41 |
    42 | 43 |
    44 | -------------------------------------------------------------------------------- /web/WEB-INF/view/account.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : register 3 | Created on : Apr 13, 2014, 3:55:46 PM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 | 11 | Register 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 41 | 42 | 43 | 44 |
    45 | 46 | <%@include file="../jspf/header.jsp" %> 47 | 48 | <%@include file="../jspf/navigation.jsp"%> 49 | 50 | <%@include file="../jspf/topSlider.jsp" %> 51 |
    52 |
    53 |

    Registered Customer

    54 | 55 |
    56 |



    57 |
    Congratulations! You have successfully created an account with TrainersDirect.

    58 | Click here to login 59 |


    60 |
    61 |
    62 |
    63 | <%@include file="../jspf/bottomSlider.jsp" %> 64 |
    65 |
    66 | 67 | 68 | 71 |
    72 | <%@include file="../jspf/baseFooter.jsp" %> 73 |
    74 | 75 |
    76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /web/WEB-INF/view/category.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : category 3 | Created on : Apr 14, 2014, 9:59:02 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 7 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 8 | 9 | 10 | 11 | Category 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
    28 | 29 | <%@include file="../jspf/header.jsp" %> 30 | 31 | <%@include file="../jspf/navigation.jsp" %> 32 | 33 | <%@include file="../jspf/topSlider.jsp" %> 34 |
    35 |
     
    36 |
    37 |

    ${selectedCategory.name}

    38 | 39 |
    40 | 41 | Product Image 42 |
    43 |
    44 | Price 45 | $${product.price} 46 | 47 |
    48 |
    49 |
    50 |

    ${product.name}

    51 |

    Product ${product.id}

    52 |
    53 |
    54 | 55 |
     
    56 |
    57 |
    58 | 59 |
     
    60 |
    61 | 62 | 63 |
    64 | <%@include file="../jspf/bottomSlider.jsp" %> 65 |
    66 |
    67 | 68 | 69 | 72 |
    73 | <%@include file="../jspf/baseFooter.jsp" %> 74 |
    75 | 76 |
    77 | 78 | 79 | -------------------------------------------------------------------------------- /web/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 30 7 | 8 | 9 | 10 | Billing 11 | 12 | Billing 13 | 14 | /billing.jsp 15 | /guest.jsp 16 | GET 17 | 18 | 19 | 20 | CONFIDENTIAL 21 | 22 | 23 | 24 | jdbc/trainerdb 25 | javax.sql.ConnectionPoolDataSource 26 | Container 27 | Shareable 28 | 29 | 30 | -------------------------------------------------------------------------------- /web/adminLogin.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : adminLogin 3 | Created on : Apr 22, 2014, 4:50:06 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 8 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 9 | 10 | 11 | 12 | Login 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 41 | 42 | 43 | 44 | 45 |
    46 | 47 | <%@include file="WEB-INF/jspf/header.jsp" %> 48 | 49 | <%@include file="WEB-INF/jspf/navigation.jsp" %> 50 | 51 | 52 |
    53 |
     
    54 | 55 |
    56 | 57 |



    60 | Account Login: 61 |
    62 | 63 | 64 | 65 |
    66 |
    67 |
    68 | 69 | Administrator
    70 | login as an administrator



    71 |

    72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 |
    Username:
    Password:
    ${adminInfo}
    83 | 84 |



    85 |
    86 |
    87 | 88 |
    89 | 90 | 91 | 92 |
    93 |
    94 |
    95 | 96 |
    97 | 98 | 101 |
    102 | <%@include file="WEB-INF/jspf/baseFooter.jsp" %> 103 |
    104 | 105 |
    106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /web/css/fonts/MyriadPro-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/MyriadPro-Regular.eot -------------------------------------------------------------------------------- /web/css/fonts/MyriadPro-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/MyriadPro-Regular.ttf -------------------------------------------------------------------------------- /web/css/fonts/MyriadPro-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/MyriadPro-Regular.woff -------------------------------------------------------------------------------- /web/css/fonts/arialroundedmtstd-extrabold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/arialroundedmtstd-extrabold-webfont.eot -------------------------------------------------------------------------------- /web/css/fonts/arialroundedmtstd-extrabold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/arialroundedmtstd-extrabold-webfont.ttf -------------------------------------------------------------------------------- /web/css/fonts/arialroundedmtstd-extrabold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/arialroundedmtstd-extrabold-webfont.woff -------------------------------------------------------------------------------- /web/css/fonts/myriadpro-bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/myriadpro-bold-webfont.eot -------------------------------------------------------------------------------- /web/css/fonts/myriadpro-bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/myriadpro-bold-webfont.ttf -------------------------------------------------------------------------------- /web/css/fonts/myriadpro-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/fonts/myriadpro-bold-webfont.woff -------------------------------------------------------------------------------- /web/css/images/ADIDAS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/ADIDAS.jpg -------------------------------------------------------------------------------- /web/css/images/Adidas Beckenbaur.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Adidas Beckenbaur.jpg -------------------------------------------------------------------------------- /web/css/images/Adidas Climax Cool Chill.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Adidas Climax Cool Chill.jpg -------------------------------------------------------------------------------- /web/css/images/Adidas Gazelle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Adidas Gazelle.jpg -------------------------------------------------------------------------------- /web/css/images/Adidas Lin Redy 4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Adidas Lin Redy 4.jpg -------------------------------------------------------------------------------- /web/css/images/Adidas Marathon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Adidas Marathon.jpg -------------------------------------------------------------------------------- /web/css/images/Adidas Scorpio.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Adidas Scorpio.jpg -------------------------------------------------------------------------------- /web/css/images/NIKE.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/NIKE.jpg -------------------------------------------------------------------------------- /web/css/images/Nike Air Max Preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike Air Max Preview.jpg -------------------------------------------------------------------------------- /web/css/images/Nike Air Max Skyline.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike Air Max Skyline.jpg -------------------------------------------------------------------------------- /web/css/images/Nike Air Safari.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike Air Safari.jpg -------------------------------------------------------------------------------- /web/css/images/Nike HyperDunk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike HyperDunk.jpg -------------------------------------------------------------------------------- /web/css/images/Nike Shox Turbo IX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike Shox Turbo IX.jpg -------------------------------------------------------------------------------- /web/css/images/Nike Thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike Thumb.jpg -------------------------------------------------------------------------------- /web/css/images/Nike Zoom Hyperfuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Nike Zoom Hyperfuse.jpg -------------------------------------------------------------------------------- /web/css/images/REEBOK.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/REEBOK.jpg -------------------------------------------------------------------------------- /web/css/images/Reebok Aubergine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Reebok Aubergine.jpg -------------------------------------------------------------------------------- /web/css/images/Reebok Exofit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Reebok Exofit.jpg -------------------------------------------------------------------------------- /web/css/images/Reebok Pastel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Reebok Pastel.jpg -------------------------------------------------------------------------------- /web/css/images/Reebok Retro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Reebok Retro.jpg -------------------------------------------------------------------------------- /web/css/images/Reebok Ultralite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Reebok Ultralite.jpg -------------------------------------------------------------------------------- /web/css/images/Reebok Workout.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Reebok Workout.jpg -------------------------------------------------------------------------------- /web/css/images/UMBRO.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/UMBRO.jpg -------------------------------------------------------------------------------- /web/css/images/Umbro Denstone.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Umbro Denstone.jpg -------------------------------------------------------------------------------- /web/css/images/Umbro Diamond.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Umbro Diamond.jpg -------------------------------------------------------------------------------- /web/css/images/Umbro Hue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Umbro Hue.jpg -------------------------------------------------------------------------------- /web/css/images/Umbro Sodry.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Umbro Sodry.jpg -------------------------------------------------------------------------------- /web/css/images/Umbro Stadio.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Umbro Stadio.jpg -------------------------------------------------------------------------------- /web/css/images/Umbro Velcro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/Umbro Velcro.jpg -------------------------------------------------------------------------------- /web/css/images/adminlogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/adminlogo.jpg -------------------------------------------------------------------------------- /web/css/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/arrow.png -------------------------------------------------------------------------------- /web/css/images/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/back.png -------------------------------------------------------------------------------- /web/css/images/backhover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/backhover.png -------------------------------------------------------------------------------- /web/css/images/bottom-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/bottom-logo.png -------------------------------------------------------------------------------- /web/css/images/brand-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/brand-img1.jpg -------------------------------------------------------------------------------- /web/css/images/brand-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/brand-img2.jpg -------------------------------------------------------------------------------- /web/css/images/brand-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/brand-img3.jpg -------------------------------------------------------------------------------- /web/css/images/brand-img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/brand-img4.jpg -------------------------------------------------------------------------------- /web/css/images/button-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/button-left.png -------------------------------------------------------------------------------- /web/css/images/button-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/button-right.png -------------------------------------------------------------------------------- /web/css/images/cart-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/cart-img1.jpg -------------------------------------------------------------------------------- /web/css/images/cart-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/cart-img2.jpg -------------------------------------------------------------------------------- /web/css/images/cart-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/cart-img3.jpg -------------------------------------------------------------------------------- /web/css/images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/cart.png -------------------------------------------------------------------------------- /web/css/images/category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/category.png -------------------------------------------------------------------------------- /web/css/images/checkout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/checkout.png -------------------------------------------------------------------------------- /web/css/images/compare.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/compare.ico -------------------------------------------------------------------------------- /web/css/images/confirm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/confirm.png -------------------------------------------------------------------------------- /web/css/images/confirm_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/confirm_header.png -------------------------------------------------------------------------------- /web/css/images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/delete.png -------------------------------------------------------------------------------- /web/css/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/favicon.ico -------------------------------------------------------------------------------- /web/css/images/footer-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/footer-shadow.png -------------------------------------------------------------------------------- /web/css/images/item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/item.png -------------------------------------------------------------------------------- /web/css/images/keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/keys.png -------------------------------------------------------------------------------- /web/css/images/load.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/load.png -------------------------------------------------------------------------------- /web/css/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/loading.gif -------------------------------------------------------------------------------- /web/css/images/loading1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/loading1.gif -------------------------------------------------------------------------------- /web/css/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/logo.png -------------------------------------------------------------------------------- /web/css/images/main-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/main-bg.png -------------------------------------------------------------------------------- /web/css/images/nav-bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/nav-bottom.png -------------------------------------------------------------------------------- /web/css/images/new_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/new_user.png -------------------------------------------------------------------------------- /web/css/images/post-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/post-img.jpg -------------------------------------------------------------------------------- /web/css/images/price-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/price-left.png -------------------------------------------------------------------------------- /web/css/images/price-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/price-right.png -------------------------------------------------------------------------------- /web/css/images/product-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-img1.jpg -------------------------------------------------------------------------------- /web/css/images/product-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-img2.jpg -------------------------------------------------------------------------------- /web/css/images/product-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-img3.jpg -------------------------------------------------------------------------------- /web/css/images/product-img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-img4.jpg -------------------------------------------------------------------------------- /web/css/images/product-img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-img5.jpg -------------------------------------------------------------------------------- /web/css/images/product-slide1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-slide1.jpg -------------------------------------------------------------------------------- /web/css/images/product-slide2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-slide2.jpg -------------------------------------------------------------------------------- /web/css/images/product-slide3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-slide3.jpg -------------------------------------------------------------------------------- /web/css/images/product-slide4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-slide4.jpg -------------------------------------------------------------------------------- /web/css/images/product-slide5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/product-slide5.jpg -------------------------------------------------------------------------------- /web/css/images/products-slide-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/products-slide-left.png -------------------------------------------------------------------------------- /web/css/images/products-slide-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/products-slide-right.png -------------------------------------------------------------------------------- /web/css/images/shoes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/shoes.png -------------------------------------------------------------------------------- /web/css/images/shoesample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/shoesample.jpg -------------------------------------------------------------------------------- /web/css/images/shopping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/shopping.png -------------------------------------------------------------------------------- /web/css/images/shopping_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/shopping_cart.png -------------------------------------------------------------------------------- /web/css/images/shoppingcart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/shoppingcart.png -------------------------------------------------------------------------------- /web/css/images/slide-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slide-img1.jpg -------------------------------------------------------------------------------- /web/css/images/slide-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slide-img2.jpg -------------------------------------------------------------------------------- /web/css/images/slide-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slide-img3.jpg -------------------------------------------------------------------------------- /web/css/images/slide-price.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slide-price.png -------------------------------------------------------------------------------- /web/css/images/slider-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slider-bg.png -------------------------------------------------------------------------------- /web/css/images/slider-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slider-left.png -------------------------------------------------------------------------------- /web/css/images/slider-nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slider-nav.png -------------------------------------------------------------------------------- /web/css/images/slider-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/slider-right.png -------------------------------------------------------------------------------- /web/css/images/social-icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon1.png -------------------------------------------------------------------------------- /web/css/images/social-icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon2.png -------------------------------------------------------------------------------- /web/css/images/social-icon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon3.png -------------------------------------------------------------------------------- /web/css/images/social-icon4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon4.png -------------------------------------------------------------------------------- /web/css/images/social-icon5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon5.png -------------------------------------------------------------------------------- /web/css/images/social-icon6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon6.png -------------------------------------------------------------------------------- /web/css/images/social-icon7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/social-icon7.png -------------------------------------------------------------------------------- /web/css/images/top-nav-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/top-nav-left.png -------------------------------------------------------------------------------- /web/css/images/top-nav-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/css/images/top-nav-right.png -------------------------------------------------------------------------------- /web/css/jquery.ui.tabs.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery UI Tabs 1.10.1 3 | * http://jqueryui.com 4 | * 5 | * Copyright 2013 jQuery Foundation and other contributors 6 | * Released under the MIT license. 7 | * http://jquery.org/license 8 | * 9 | * http://docs.jquery.com/UI/Tabs#theming 10 | */ 11 | .ui-tabs { 12 | position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ 13 | padding: .2em; 14 | font-size:24px; 15 | } 16 | .ui-tabs .ui-tabs-nav { 17 | margin: 0; 18 | padding: .2em .2em 0; 19 | } 20 | .ui-tabs .ui-tabs-nav li { 21 | list-style: none; 22 | float: left; 23 | position: relative; 24 | top: 0; 25 | margin: 1px .2em 0 0; 26 | border-bottom: 0; 27 | padding: 0; 28 | white-space: nowrap; 29 | } 30 | .ui-tabs .ui-tabs-nav li a { 31 | float: left; 32 | padding: .5em 1em; 33 | text-decoration: none; 34 | } 35 | .ui-tabs .ui-tabs-nav li.ui-tabs-active { 36 | margin-bottom: -1px; 37 | padding-bottom: 1px; 38 | } 39 | .ui-tabs .ui-tabs-nav li.ui-tabs-active a, 40 | .ui-tabs .ui-tabs-nav li.ui-state-disabled a, 41 | .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { 42 | cursor: text; 43 | } 44 | .ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ 45 | .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { 46 | cursor: pointer; 47 | } 48 | .ui-tabs .ui-tabs-panel { 49 | display: block; 50 | border-width: 0; 51 | padding: 1em 1.4em; 52 | background: none; 53 | } 54 | -------------------------------------------------------------------------------- /web/home.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Document : home 3 | Created on : Apr 13, 2014, 9:44:20 AM 4 | Author : Udoh Itorobong 5 | --%> 6 | 7 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 8 | <%@page contentType="text/html" pageEncoding="UTF-8"%> 9 | 10 | 11 | 12 | Home 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | <%@include file="WEB-INF/jspf/header.jsp" %> 33 | 34 | <%@include file="WEB-INF/jspf/navigation.jsp" %> 35 | 36 | <%@include file="WEB-INF/jspf/topSlider.jsp" %> 37 | 38 |
    39 | 40 |
    41 |
    42 |

    Welcome!

    43 | Post Image 44 | 45 |

    This is an individual course work for the course M30CDE: Open Systems Application Development. The course work involves developing an JavaEE e-Commerce application.I made use of the following technologies in developing the web application: HTML5, Javascript(JQuery), CSS, JSP, Servlets, EJB ,JPA and JDBC. 46 | I employed the MVC architecture for the design of the e-commerce application. Feel free to 47 | contact me if you love my job. 48 |

    49 | 50 |
     
    51 |
    52 |
    53 | 54 | 55 | 71 | 72 |
     
    73 | 74 |
    75 |

    Featured Products

    76 | 77 |
    78 | 79 | Product Image 80 |
    81 |
    82 | Price 83 | $${product.price} 84 | 85 |
    86 |
    87 |
    88 |

    ${product.name}

    89 |

    Product ${product.id}

    90 |
    91 |
    92 | 93 |
     
    94 |
    95 |
    96 | 97 |
     
    98 |
    99 | 100 | 101 |
    102 | <%@include file="WEB-INF/jspf/bottomSlider.jsp" %> 103 |
    104 |
    105 | 106 | 107 | 110 |
    111 | <%@include file="WEB-INF/jspf/baseFooter.jsp" %> 112 |
    113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /web/js/Myriad_Pro_700.font.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udohi/JavaEE-e-Commerce-Application/b02f9882a760d695f532e4d26a036687c070ec09/web/js/Myriad_Pro_700.font.js -------------------------------------------------------------------------------- /web/js/functions.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | $('#slider ul.slider-items').jcarousel({ 3 | 'scroll': 1, 4 | 'auto': 3, 5 | 'wrap': 'both', 6 | initCallback: mycarousel_initCallback, 7 | itemVisibleInCallback: { 8 | onAfterAnimation: function(c, o, i, s) { 9 | jQuery('.slider-nav li').removeClass('active'); 10 | jQuery('.slider-nav li:eq('+ (i-1) +')').addClass('active'); 11 | } 12 | } 13 | }); 14 | 15 | $('#product-slider').jcarousel({ 16 | 'scroll': 1, 17 | 'auto': 3, 18 | 'wrap': 'both' 19 | }); 20 | 21 | $('#navigation li').hover(function(){ 22 | $(this).find('.dd:first').show(); 23 | }, function(){ 24 | $(this).find('.dd:first').hide(); 25 | }); 26 | 27 | $('#navigation li:not(.active) .dd').hover(function(){ 28 | $(this).parent().addClass('pr-active'); 29 | }, function(){ 30 | $(this).parent().removeClass('pr-active'); 31 | }); 32 | 33 | Cufon.replace('.slider-items h2, .slider-items h3, .slider-items h4:not(.short)', { 34 | textShadow: '-1px 1px 1px #000', 35 | letterSpacing: '-2px', 36 | wordSpacing: '3px' 37 | }); 38 | Cufon.replace('.slider-items h4.short', { 39 | letterSpacing: '-1px', 40 | textShadow: '-1px 1px 1px #000' 41 | }); 42 | 43 | if ($.browser.msie && $.browser.version == 6) { 44 | DD_belatedPNG.fix('#wrapper, h1#logo a, .shopping, #top-nav a, #navigation, .dd a, #slider, .button , .button span, .more, .product .price, .price .inner, #product-slider .info, #product-slider .jcarousel-prev, #product-slider .jcarousel-next, #footer, .boxes, .copy, .box-entry img, .social-box img'); 45 | } 46 | }); 47 | 48 | function mycarousel_initCallback(carousel) { 49 | 50 | var _arrows = $('#slider .jcarousel-prev, #slider .jcarousel-next'); 51 | _arrows.hide(); 52 | 53 | $('#slider .shell').hover(function(){ 54 | _arrows.show().addClass('carousel-active'); 55 | }, function(){ 56 | _arrows.hide().removeClass('carousel-active'); 57 | }); 58 | 59 | $('.slider-nav').append('
      '); 60 | $('.slider-items li').each(function(){ 61 | $('.slider-nav ul').append('
    •  
    • '); 62 | }); 63 | 64 | $('.slider-nav').css('margin-left', function(){ 65 | return (-($(this).width() / 2) + 15) + 'px'; 66 | }); 67 | 68 | $('.slider-nav a').bind('click', function() { 69 | carousel.scroll(jQuery.jcarousel.intval((jQuery(this).parent().index()) + 1)); 70 | return false; 71 | }); 72 | }; -------------------------------------------------------------------------------- /web/js/tab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | tab demo 6 | 7 | 8 | 9 | 14 | 15 | 16 |
      17 | 21 | 22 |
      23 | 24 |
      25 |
      52 | 53 | 54 | 55 |
      56 |
      this is old user signin tab
      57 | 58 |
      59 | 60 | --------------------------------------------------------------------------------