File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 63870

Perhaps this article will be helpful.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: How to stop reloading of data.
It's not a secret anymore!