Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit button only works once?

 
rich werth
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again
I am having some trouble calling a servlet more than once. I am posting here first bcuz it doesn't get to the servlet more than once(doesn't call post method)
What I am doing is grabbing a list it has x number of items in it and I am displaying them in a browser page 5 at a time. I am using a submit button in a form to do this
<form name="form1" method="post" action="glControl">
<input type="submit" name="button" value="Next">

</form>
This only works once, then it doesn't call the servlet again?? Why doesn't it?
I get to go to page 2 and see items 6-10 and that's it. On other presses it just refreshes the screen.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked at the server side to make sure it isn't hitting the servlet? The 'page refersh' you are seeing may be the servlet sending the same data back each time.
The problem is the almighty page caching issue, but I think that's less likely. To eliminate the caching problem, add this to your servlet

Dave
 
rich werth
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thanks for the reply
It wasn't going to the servlet bcuz my stupid cache setting in netscape said not to check for pages.
I chaned it and it works fine now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic