Web开发加入购物车实现思路

Web开发加入购物车

list——>(链接到)——>AddCartServlet?gname=${g.gname}&price=${G.price}——>QueryCartListServlet——>CartList.jsps(显示)

分析:从list.jsp到添加商品的servlet,同事得传参,商品名称和价格,进入dao封装商品及总数量(count),购物车(总价,list集合)Cart;实例化dao.cart,    吧cart传给CartList.jsp

猜你喜欢

转载自blog.csdn.net/l15336134466/article/details/80074840