• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Time delays inbetween forwarding of jsp pages?

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Saloon Keeper
Posts: 28069
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Everybody! Do the Funky Monkey! Like this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic