Another suggestion: The HTML spec recommends using "POST" instead of "GET" for a form operation that changes something on the server. If a user refreshes the page the browser will post a warning before re-submitting the POST request. That may not be enough of a safeguard in your situation but it's still good practice and helps the user know what's going on. -- Len
On Feb 19, 2008 9:51 PM, Alaska Winter <[EMAIL PROTECTED]> wrote: > Hi, > If a user adds an item to his/her shopping cart using form data like this: > http://my.domain.com/addToCart.do?itemId=HB0019 > How can I determine if it was generated from user clicking an add-to-cart > link vs. a browser refresh? > I don't want to increment the quantity in the cart for this item if the user > refreshes the browser but I do want to increment if the user clicks the add > button again for this item. > > > > Thanks > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]