Dont allow incremental shopping (where an item can be added several times to
make up a quantity of items) instead give a quantity field for them client
to fill in requesting the number of items. This way you can check whether
the item already exists and just replace the quantities. If the user presses
refresh, they will just get the same quantity for that item set.
chanoch
-----Original Message-----
From: asitha ranjan [mailto:asitha_ranjan@y...]
Sent: 25 January 2001 03:03
To: Servlets
Subject: [servlets] shopping cart query
Hi
All
I am doing a shopping cart system where i am able to
add & remove the things from the session But if the
user presses Refresh Button of the browser the vlaue
get's incremented . to Avoid this what to be done
post the code.
Thanx
Ranjan