File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
I agree. Here's the link:
subject: jsp counter
cant/wont clear the counter out
Expression <%= new Counter() %>
JSP variable declarations
Multiple actions on timers anyone?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013