How to redirect to another JSP page ?

I am developing a JSP/servlets web application..

I want that when user lgges out he is displayed the logout page i.e. logout.jsp

and afterword automatically redirect to index page after some time..

i tried..

1. <jsp:forward page=""index.jsp" />

and 2. response.sendRedirect("index.jsp");

but was not sucessfull..

[362 byte] By [Jasdeep.Singha] at [2007-10-3 2:27:18]
# 1
codes?
jgalacambraa at 2007-7-14 19:26:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
In your logout.jsp page, simply include this in your <head></head> section:<meta http-equiv="refresh" content="10;url= http://www.mynewpage.com">This would redirect the browser to http://www.mynewpage.com after 10 seconds.
linxpdaa at 2007-7-14 19:26:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanx linxda .. it worked fine
Jasdeep.Singha at 2007-7-14 19:26:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...