----- Original Message -----
From: "Ashok Palaniswamy" <[EMAIL PROTECTED]>

> I have a situation where I need to make the user wait for a particular
> period of time (say 15 seconds) after submitting his details (like a user
> logon) on one html page... & lateron I wanna  redirect him to a different
> page using the sendRedirect().

I think you can use the Refresh HTTP header. This header value specifies the
number of seconds to display the page before pulling the next one, and it
optionally includes a URL string that specifies the URL from which to
refresh.

So I think you can set a header in your response as follows
response.setHeader("refresh", " 15; URL=http://www.differentpage.com");

The client in this case will wait for 15 seconds before refreshing the
content from  http://www.diffrentpage.com

Regds,
Gokul

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to