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>
Ryan Yeap
Greenhorn
Joined: Apr 28, 2001
Posts: 28
posted
0
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).]
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.
Customer surveys are for companies who didn't pay proper attention to begin with.