File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Online Shopping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Online Shopping" Watch "Online Shopping" New topic

Online Shopping

Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 83
Hi, I have written an Online Shopping system. But, there a bug in it. Whenever I add an item, it is getting added twice. It will be great if anybody can point where the error is.Thanks in advance.

Source code is as follows:




karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
You are adding it in show.jsp and cart1.jsp



why do you want to add it in show.jsp? From the name I infer it should only display the items in cart. Not try to add an item.

I agree. Here's the link:
subject: Online Shopping
jQuery in Action, 3rd edition