GeeCON Prague 2014*
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
Author

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
Amit


<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.
asheet
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.


!_I_Know_Kung_Fu_!
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Amit,
A sampe code could be
 
GeeCON Prague 2014
 
subject: Forwarding the page after some time delay