doPost called twice

I can't seem to figure out why my servlet calls the doPost method twice on each request. I used

log("Entering Contacts.doPost at " + System.currentTimeMillis()); to confirm the problem. It is really frustrating, because the servlet is set to report database errors. Every time I delete a record, the record is deleted, but the phantom second request fails to delete the nonexistent record (obviously). Any help would be appreciated.

[454 byte] By [IamtheWolfeman] at [2007-9-19]
# 1

It's probably something at the client side that is sending the request twice. Have a look there. (Apparently this can happen if you use some Javascript construct to send the request instead of an HTML submit button, I don't remember the details but you could search the forums for this.)

DrClap at 2007-7-5 > top of java,Enterprise & Remote Computing,Web Tier APIs...