A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Dec 11, 2003
Dec 13, 2003 06:32:00
i hv a simple coding of counter in
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.
Joined: Mar 06, 2001
Dec 13, 2003 06:48:00
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:
subject: jsp counter
Expression <%= new Counter() %>
JSP variable declarations
Multiple actions on timers anyone?
cant/wont clear the counter out
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015