With the continuous development of information technology and the Internet in worldwide rapidly in popularity, e-commerce has become the pronoun of new economy. The new round of Internet e-commerce has gradually by the general merchants and consumers. One online shopping is a typical e-commerce applications, consumer can through the browser on the site by the enterprise business by using electronic bill business information, the way to the bank payments, all the operation on the Internet, the whole process convenient and quick. At present, online shop is gradually accepted by people. Internet shopping cart is the core component of online shop, is the e-commerce sites for the core part of the customer, customer shopping in each choose goods after the final settlement and send information and order are dependent on the shopping cart records in commodity information. Internet shopping cart is customer online shopping mall in virtual when shopping tools, must carry on the customers browse catalogues, can put him like one of the goods on the shopping cart, also can be removed from the cart selected merchandise or change the selected the quantity of a commodity, until the final payment. The electronic commerce system based on web use is three layers of B/S model, instead of two layers of traditional C/S mode, it consists of a web browser as the user interface, a database server for information storage and a connection between the web server. Customer online shopping is the main reason of the commodity price cheap, check goods can save time and information easily, so it is necessary to online shop, the core of the cart network design and implementation method of analysis. This is based on the background, through the use of Java language struts2 and hibernate to frame design and realization of the cart.