Hello Ranchars, pl help me in finding solution of this problem.i have made one jsp page which insert record into databse.i m following model architecture.The data is posted from jsp page to servlert which insert the record.after complition the request is forwarded to same page.
Now when i m refreshing the page the same request is processed again.so the same values r inserted again.i want stop this .one limitation is that i can not use sendRedirect() method bcoz i want one attribute from that request object in jsp page.
Amin, your solution is really good. There must be some check for duplicate entries. We can define a primary key for that, and yes we can also check the duplication first if needed, as you stated above.
But here I think the original poster doesn't even want to process the request on page refresh. This is what I understand. [ August 08, 2005: Message edited by: Adeel Ansari ]
posted 15 years ago
sorry Adeel i don't know where should i insert the code.so i m inserting the code snippet in your blog here pl check it out.