aspose file tools
The moose likes JSP and the fly likes Form getting resubmit on Rfreshing the browser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Form getting resubmit on Rfreshing the browser " Watch "Form getting resubmit on Rfreshing the browser " New topic
Author

Form getting resubmit on Rfreshing the browser

Maneessh saxena
Ranch Hand

Joined: Oct 03, 2006
Posts: 125
hi Great Ranchers,

I've a problem with HTML forms in my jsp. Actually I have a form, when I submit the for it dose perform some logic that's fine. But the problem is when I refresh the web page (by pressing refresh button of browser), it performs the same logic again which isn't desirable.

Kindly tell me the proper solution ASAP.

Thanks & Regards


SCJP 1.4, SCWCD 1.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56174
    
  13

raunak saxena wrote:Kindly tell me the proper solution ASAP.

You know, I was going to answer until your rude statement made me not want to.

Please read this for more information.

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56174
    
  13

Seriously, that's exactly the type of reaction those statements can cause. Please avoid using them in the future.

With regards to your question, please read this article paying special attention to the PRG pattern.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Form getting resubmit on Rfreshing the browser
 
Similar Threads
Problem on "refrech" screen on pages built by struts
Refresh from Browser
refresh a JSF page
Refresh problem in Servlets !!
Waiting on a Refresh