wood burning stoves 2.0*
The moose likes Servlets and the fly likes Time delays inbetween forwarding of jsp pages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Time delays inbetween forwarding of jsp pages?" Watch "Time delays inbetween forwarding of jsp pages?" New topic
Author

Time delays inbetween forwarding of jsp pages?

Ryan Yeap
Greenhorn

Joined: Apr 28, 2001
Posts: 28
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
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).]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Time delays inbetween forwarding of jsp pages?
 
Similar Threads
URL "protected"
response.sendRedirect();jsp:forward;<c:redirect>
Newbie wrestles with scope and includes
jsp:include and c:import combination/nesting
tomcat crashes when counting lines in a text file