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 HTML, CSS and JavaScript and the fly likes Any JSP Timer 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 » Engineering » HTML, CSS and JavaScript
Bookmark "Any JSP Timer" Watch "Any JSP Timer" New topic
Author

Any JSP Timer

Johnny Lee
Greenhorn

Joined: Jul 15, 2004
Posts: 5
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

You'll need to handle this on the client side. Moving to the HTML/javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
<body onload="settimeout(\"document.location.href='blah.jsp'\",5000)">
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Since, as Eric always says, JavaScript could be disabled, it is better to use a meta tag for that
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jul 15, 2004
Posts: 5
Thank you guys, it works!!!

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Any JSP Timer
 
Similar Threads
Forwarding Pages in JSP
best approach
code help!!
JSP Forward
ServletContext problem