The problem is the data from the "Add" action is still in the request object, so when you refresh, the same request object is resent. One (slightly) dodgey way to do it is to forward the user from the Add page to another JSP page with just a single line of code with a response.forward in it when redirects back to the Add page. The response.forward redirects the user but clears the request object of data. response.redirect redirects the user, keeping any data in the request object.
posted 16 years ago
oh, by the way, if you put more information into your subject line, it makes it easier for people to know what the question is about, and more likely to get responses! Cheers, Andrew.