This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Online Shopping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Online Shopping" Watch "Online Shopping" New topic
Author

Online Shopping

Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 81
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:

index.jsp


show.jsp

Cart1.jsp


Cart.java

karthikeyan Chockalingam
Ranch Hand

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

show.jsp


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.


http://www.skillassert.com


 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Online Shopping
 
Similar Threads
Unable to find specific product
Storing resultset into arraylist
JSP two pages
Unable to redirect the page through dispatcher
Multiple forms in a single JSP page