• 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

submit button only works once?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic