aspose file tools
The moose likes Spring and the fly likes application saves data upon clicking the browser refresh button Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "application saves data upon clicking the browser refresh button" Watch "application saves data upon clicking the browser refresh button" New topic
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("redirectummyRedirectPage.html");
Regards,
Dohar
dhoni Gibson
Ranch Hand

Joined: Feb 10, 2011
Posts: 30
hi dohar

thanks for reply.. i wil try this
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: application saves data upon clicking the browser refresh button
 
Similar Threads
sendRedirect and CSS!
Editing HTML page in eclipse
How to identify when refresh button of browser or f5 is pressed
Disabling Refresh
Refresh page once