File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Forwarding the page after some time delay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Forwarding the page after some time delay" Watch "Forwarding the page after some time delay" New topic

Forwarding the page after some time delay

Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
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

<I>Chance Favours the Prepared minds"</I>
asheet anand
Ranch Hand

Joined: Nov 15, 2000
Posts: 83
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.
Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338

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

Joined: Jan 31, 2000
Posts: 1467
A sampe code could be
I agree. Here's the link:
subject: Forwarding the page after some time delay
It's not a secret anymore!