Hello Everyone, I have a querry. I have three pages first page where i enter the values and the third page is where i get the values. This second page i wanna use as a redirect page. I have seen in many pages where a page is launched which says that soon you will taken to so and so page. I tried to use sendRedirect. As i thought that will work. We have such thing working in javaranch site also. Can anyone help me and tell how shall i do this. Thanks in advance abhinav abhinav@comprointertech.com
Abhinav, try this.. response.sendRedirect("/abc/xyz/close.jsp"); return; abc, xyz are the root/sub folders.. if you want to pass some parameters to close.jsp page use query string. Best luck..
Or, you can have the second page return HTML code like the following: <html> <head><meta http-equiv="REFRESH" content="10; URL=close.jsp"></head> <body> Sit tight, we will take you to close.jsp in 10 seconds. </body> </html> The brower will display the message and automatically fresh to close.jsp after 10 seconds. You can change to 0 if you want immediate redirection.