• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mr frank where are u  RSS feed

 
anand chawla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i create a timer in jsp.
i am making online gre gmat exams.
and i have to keep a not of time thru 100 pages.
that is ...even though a new page opens up...
the time should be continuous...
pls help...i dont want a script
i just need a idea
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just put a "start time" from "new Date()" and drop it in the HttpSession and then in each page calculate the remaining and elapsed time from that.
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
anand chawla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kyle,
Thanx for the reply..I think what u tell is totally right,
that can be done.But see that would display a static time...thats something like 5 minutes remaining.
but i want something like it should show me
5 min 30 sec
5 min 29 sec.....and so on
how can this be done..
pls help I know nothing is impossible in Java
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by anand chawla:
I know nothing is impossible in Java
But the HTTP request/response paradigm imposes its limitations - I don't suppose you'll like a refresh every second. Javascript time, I'm afraid. Try the HTML and JavaScript forum.
- Peter

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!