• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any JSP Timer

 
Johnny Lee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a logon page. Upon successful verification, I want to direct the user to a welcome page, after 5 seconds forward to another page.

Is there any way JSP can achieve this? Let say make a countdown when t=0 <forward page="anotherpage.html"/>?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to handle this on the client side. Moving to the HTML/javascript forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<body onload="settimeout(\"document.location.href='blah.jsp'\",5000)">
 
Yuriy Fuksenko
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since, as Eric always says, JavaScript could be disabled, it is better to use a meta tag for that
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is true....Right now my mind is set on JavaScript....trying to get my book done and over with. (last week of edis)
 
Johnny Lee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys, it works!!!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic