• 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

Disable Refresh Button of IE ??

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can I disable Refresh Button of IE. I want to disbale Refresh button because my problem is when user click on Refresh button then my jsp page again submitting and creating duplicate record in database.Can any one please guide me how i can prevent so that my jsp page should not be submitted on page refresh.
Thanks & Regards
Bikash
[ February 29, 2004: Message edited by: Bikash Paul ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to figure out how to stop it on the server side.
First check if the record exsists. If it does then you do not enter it. One SQL query will solve you problem. There is no way to do it with JavaScript.
Eric
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could have 2 pages:
1 - gets record from session and displays
2 - JSP or Servlet, that saves record
form on page 1 will submit data to page 2,
page 2 will save data in DB if needed and use response.sendRedirect to sent user to page 1.
Then he could refresh as much as he wants
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Thanks for suggestions.
Thanks & Regards
Bikash
 
get schwifty. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic