Hi,
Does anyone know how to force a delay between the time a user hits the submit button and the point at which a jsp loads in the browser? I'm desiging an app where I'd like to build in a random 5 to 10 second delay in the server response time.
Thanks for the help,
Geoff
-
delay page loading (2 messages)
- Posted by: geoff boushey
- Posted on: December 05 2001 18:19 EST
Threaded Messages (2)
- delay page loading by Henrik Engstrom on December 06 2001 07:02 EST
- delay page loading by geoff boushey on December 10 2001 11:56 EST
-
delay page loading[ Go to top ]
- Posted by: Henrik Engstrom
- Posted on: December 06 2001 07:02 EST
- in response to geoff boushey
You can always do this with a simple thread:
try {
Thread.sleep(1000); // wait for one second
} catch (InterruptedException e) {}
Use the random functionality to create a long between 5000 and 10000 and you got yourself a random deply.
HTH
/Henrik -
delay page loading[ Go to top ]
- Posted by: geoff boushey
- Posted on: December 10 2001 11:56 EST
- in response to Henrik Engstrom
Thanks - that worked out well.