views:

47

answers:

1

I have made one example , In which I have used Spring - mvc and hibernate. I have successfully insert data in the database table but after that I have refresh the page new entry is inserted.

Required Solution : When I refresh the page the database entry would not be inserted second time.

+2  A: 

Required Solution : When I refresh the page the database entry would not be inserted second time.

Then send a redirect after submit (by returning a RedirectView).

Pascal Thivent