This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp counter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp counter" Watch "jsp counter" New topic
Author

jsp counter

Hansy Be
Greenhorn

Joined: Dec 11, 2003
Posts: 2
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

Joined: Mar 06, 2001
Posts: 13459

Yep, sounds like you need to add persistence to your counter by storing the count in a file or preferably a database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp counter
 
Similar Threads
Multiple actions on timers anyone?
recursive function!!!!
JSP variable declarations
Expression <%= new Counter() %>
cant/wont clear the counter out