This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding the page after some time delay

 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
I wanted to know how do i show a particular page in JSP for some seconds and then forward it to another page
Thanks in Advance
Amit
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can do it with the help os sessions.
use the session.settimeout() property specifying
the no.of milliseconds after which u will go to
the next page.
asheet
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If the session times out, does it reload/redirect the page?
Are you sure it works like that?
Doesn't the client side need to make a request to reload the page?
Another way you can do this is with the HTML meta tag refresh property. You can dynamically generate this tag to meet your specific needs.
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit,
A sampe code could be
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic