Have the action that adds the records forward to another action or
JSP with
redirect=true specified in the forward. That way the URI displayed in the browser is not the same URI that causes a record to be added. Therefore, when the user clicks the refresh button, no record will be added. One thing to be aware of, though, is that when you specify
redirect=true anything you put in the request is lost. You must pass information either in the session or query
string parameters.