| Author |
application saves data upon clicking the browser refresh button
|
dhoni Gibson
Ranch Hand
Joined: Feb 10, 2011
Posts: 30
|
|
hi
when i click browser refresh button , my page data get saved into database, but i want to avoid this. i am using spring mvc, is there any way to restrict page sumbit.
|
 |
ahmed dohar
Greenhorn
Joined: Oct 06, 2009
Posts: 26
|
|
Hi, you should after saving your data "redirect" the user to avoid this situation
return new ModelAndView("redirect ummyRedirectPage.html");
Regards,
Dohar
|
 |
dhoni Gibson
Ranch Hand
Joined: Feb 10, 2011
Posts: 30
|
|
hi dohar
thanks for reply.. i wil try this
|
 |
 |
|
|
subject: application saves data upon clicking the browser refresh button
|
|
|