Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp counter

 
Hansy Be
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends!
i hv a simple coding of counter in jsp and its go on working well but when server is restarted then its go on counting from start i.e 1 and all the previous countings are vanished.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, sounds like you need to add persistence to your counter by storing the count in a file or preferably a database.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic