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 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.
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.
It is sorta covered in the
JavaRanch Style Guide
subject: jsp counter
Expression <%= new Counter() %>
cant/wont clear the counter out
Multiple actions on timers anyone?
JSP variable declarations
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014