This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Similar Threads
Who can describe with words?
Pattern used in the qn
How Many String Object?
two questions: properties file and booked room
Maven sync and plugin