• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mr frank where are u

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic