• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time delays inbetween forwarding of jsp pages?

 
Ryan Yeap
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ryan Yeap
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic