File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Timer function in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Timer function in JSP" Watch "Timer function in JSP" New topic

Timer function in JSP

Geetha Sarath

Joined: Aug 08, 2005
Posts: 10
Want to create a webpage,for conducting a test.
I want to create a control which displays the seconds for each question.
When the time grows,the question second should decrease.
Able to create a second displayer in thread,thats in increasing order.
But want to create in decreasing ..
Would anyone help me for this..
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
JSP is a server-side technology. It executes on server, and client gets just html kind of stuff. Manipulating countdown in JSP needs requesting server, say every second.

Better idea would be an Applet or JavaScript. You can control the timer on server-side and can use JavaScript just countdown display. May be its just me.

Got some results by googling. You can also google around with "javascript countdown" or "java countdown" for more results.
I agree. Here's the link:
subject: Timer function in JSP
It's not a secret anymore!