send « Redirect « JSP-Servlet Q&A





1. window.open and send.Redirect    coderanch.com

Hi all, I have a page that will do 2 actions, there are open new window ( popup ) and go to the next page. I use window.open() in javascript and after that using send.Redirect method to go next page... The result is I will be in the next page but there is no new window is opened Can you help ...

2. Send redirect    coderanch.com

source: http://www.sap-img.com/java/difference-between-response-sendredirect-and-request-forward.htm sendRedirect() sends a redirect response back to the client's browser. The browser will normally interpret this response by initiating a new request to the redirect URL given in the response. forward() does not involve the client's browser. It just takes browser's current request, and hands it off to another servlet/jsp to handle. The client doesn't know that they're request ...