Hi Chris,
Thanks for your reply.
Keep, in the session, a Map of hidden fields to responses.
My application does not use session. I did think of this option, but I have to work around the problem without the use of session.
Alternatively, instead of forwarding to your response using RequestDispatcher, use a sendRedirect.
I am forwarding the request using RequestDispatcher, as I have packaged my request object with attributes, which are needed by the next servlet/jsp in the chain. I tried using sendRedirect but it does not achieve the purpose. So any other alternatives would be highly appreciated.
Alok,
Have a primary key on the table where you are inserting.
I already have the primary key constraint, but the primary key field is generated whenever a new request arrives. The problem here is to identify if the request is new or the same as in the case of page refresh.. Any thoughts on this?? Thanks all for your interest and responses.
Regards,