wood burning stoves 2.0*
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: 60059
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refresh the page again inserting into db
 
Similar Threads
how to refresh a jsp page
refreshing problem
Struts - Auto Refresh
duplicate records
Inserting a record in Database after refreshing a page