I am building a examination system. But I don't know how to implement a timer / clock.
When user is taking an exam, he should have a countdown timer. How to do this ? how to remember the time between jsp pages ? seperate thread to countdown time in server side ?
Thanks in advance .
How about this...
When the user starts the exam create a Date object representing when the exam ends, then save it in the session.
For every request (inc the first) create another Date object representing the current time and save it in the session
Create an applet clock that shows the time difference between the current and the exam end date objects - thats your time left on the exam.
[ October 05, 2005: Message edited by: Daniel Rhoades ]
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Download Free Java APIs to Work with Office Files and PDF
This thread has been viewed 2269 times.
All times above are in ranch (not your local) time.
The current ranch time is
Dec 12, 2018 05:49:11.