aspose file tools*
The moose likes Servlets and the fly likes refresh the page again inserting into db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "refresh the page again inserting into db" Watch "refresh the page again inserting into db" New topic
Author

refresh the page again inserting into db

siva priya uppini
Greenhorn

Joined: Sep 15, 2012
Posts: 2
one jsp containing the from to insert the values.again the same jsp need to display the inserted values.In my context it is inserting and displaying correctly.But when i am trying to refresh the it is once again going and inserting into the db.Let me know the solutions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Please read this article and pay particular attention to the PRG pattern.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: refresh the page again inserting into db