This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes How to stop reloading of data. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "How to stop reloading of data." Watch "How to stop reloading of data." New topic

How to stop reloading of data.

sonu rai

Joined: May 23, 2007
Posts: 22
hi All,
I am Submiting an data in jsp Page and displaying it to another JSP page but the problem iam facing when i refresh the page data is again inserted.
how it could be stoped.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Search this, the servlets forum, and (if you don't get a good explanation) Google for the 'post, redirect, get' pattern.

In a nutshell, this pattern insures that clicking the refresh button will never do anything more than read something.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63211

Perhaps this article will be helpful.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you checked out Aspose?
subject: How to stop reloading of data.
jQuery in Action, 3rd edition