Wednesday, April 16, 2008

JSP - Wait before redirect page

You might want to add some delay before redirect the page, instead of using sendRedirect(), which will redirect immediately, you can use response.setHeader() in JSP.

response.setHeader("Refresh", "5; URL=")

You will then be redirected to the page after 5 seconds.

1 comment:

Bilesh Ganguly said...

Thanks for the info dude... =)