Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

refreshing servlet  RSS feed

 
Sanjeev Rathore
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running my servlet on Tomcat 4.0, RedHat Linux 7.2. When I hit the Refresh button on the browser, my servlet content gets duplicated, each time I press refresh button.
What should I do so that my servlet content gets refreshed but not duplicated.
Sanjeev
 
Sanjeev Rathore
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet has a table in which small Java class method is called. It is this class method call that gets duplicated each time refresh button is pressed.
Sanjeev
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may need to check your instance variable. They may need to be cleared each time before use.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post some of your code and we may be able to help you.
Kyle
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!