• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Form getting resubmit on Rfreshing the browser

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic