This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60774
    
  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
Struts - Auto Refresh
duplicate records
how to refresh a jsp page
refreshing problem
Inserting a record in Database after refreshing a page