• Post Reply Bookmark Topic Watch Topic
  • New Topic

Popup window jsp only performs operations once

 
Padraig Joseph
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp which performs some operations, some of which involve updating database tables.
It is opened as a popup window from a servlet, and all that is displayed is a message telling the user that the operations have been performed.
However, it only actually does any work the first time it is accessed. Even if I shut down my tomcat webserver and re-run it, nothing happens after the first time. I have to restart my machine before it runs properly again.
Does anyone know what I'm doing wrong?
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
it seems like your browser pick your page from cache, and not hitting a server.
You could either put expiration meta tag in you html, or set nocache header, or something like that (sorry, don't remember exact syntax).
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Try adding all of the above, it's worked well for me for ages.
Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!