Lets say i have a jsp page that confirms the users login and says "Welcome <username>! You will be redirected to index.jsp in 5 seconds..." What code/command would i need to type in the jsp for the page to wait 5 secs(for example) before doing a <jsp: forward page="index.jsp" /> ? Thanks The JavaRanch GreenHorn, Ryan
<A HREF="http://www.mmorpgforums.com" TARGET=_blank rel="nofollow">An Online community for Online RPGs!</A>
To provide an answer for my own question .... I used <meta http-equiv="Refresh" content="2; URL=index.jsp"> in <head></head> This seems to forward the page after n seconds. ( where n in this case, is 2). What I would like to know now is , is there this feature within <jsp: forward page="index.jsp" /> (or jsp) (ie <jsp: refresh ="2" /> ???) that enables the jsp to be forwared within nth seconds? Thanks. Ryan [This message has been edited by Ryan Yeap (edited September 04, 2001).]
<A HREF="http://www.mmorpgforums.com" TARGET=_blank rel="nofollow">An Online community for Online RPGs!</A>
Nope. Webservers only respond to requests. One request, One response. What you're thinking of would involve two responses for one request - the initial page, then the delayed page.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Everybody! Do the Funky Monkey! Like this tiny ad!