response.sendRedirect() doesn't work!
Hi every body, I've have a problem with the response.sendRedirect called in a jsp file, I've used Tile in my project. I've set the autoFlush=false and set the bufferSize to a big number (bufferSize=2048kB) in the master page (of Tile) and in the *child* jsp file where the response.sendRedirect() was called, I've also set page directive the same as the master page. But it didn't work. Some told me that the following snippet work for them: % response.sendRedirect(abc.do); return; % I've also tried this, but it didn't work either. I've used Struts 1.2.9 and Tomcat 5.0.30. Please help, thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: response.sendRedirect() doesn't work!
Why not avoid this problem since you are using a tile and simply add a meta refresh at the top? That way you know the page should change and you will have no problem with how Tiles handles output. Personally, I think putting a response.sendRedirect() in a jsp is the wrong place. I try to keep redirect to a blank page or a new Forward(...) with redirect=true in the action an its outcome. Regards, David -Original Message- From: Truong Xuan Tinh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 12:20 PM To: Struts Users Mailing List Subject: response.sendRedirect() doesn't work! Hi every body, I've have a problem with the response.sendRedirect called in a jsp file, I've used Tile in my project. I've set the autoFlush=false and set the bufferSize to a big number (bufferSize=2048kB) in the master page (of Tile) and in the *child* jsp file where the response.sendRedirect() was called, I've also set page directive the same as the master page. But it didn't work. Some told me that the following snippet work for them: % response.sendRedirect(abc.do); return; % I've also tried this, but it didn't work either. I've used Struts 1.2.9 and Tomcat 5.0.30. Please help, thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: response.sendRedirect() doesn't work!
Thank David for your reply. Actually, I've known that's not right to do it, in the jsp file, but I've have no choice in this situation. Because this is the final page in a wizard-like web application. Normally, the user stop at the final page, but in some case, the user want to redo the wizard again, and they don't want to stop at the final page, just finish the current wizard and start a new one. Any suggestion would be appreciated. Thank you. David Friedman wrote: Why not avoid this problem since you are using a tile and simply add a meta refresh at the top? That way you know the page should change and you will have no problem with how Tiles handles output. Personally, I think putting a response.sendRedirect() in a jsp is the wrong place. I try to keep redirect to a blank page or a new Forward(...) with redirect=true in the action an its outcome. Regards, David -Original Message- From: Truong Xuan Tinh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 12:20 PM To: Struts Users Mailing List Subject: response.sendRedirect() doesn't work! Hi every body, I've have a problem with the response.sendRedirect called in a jsp file, I've used Tile in my project. I've set the autoFlush=false and set the bufferSize to a big number (bufferSize=2048kB) in the master page (of Tile) and in the *child* jsp file where the response.sendRedirect() was called, I've also set page directive the same as the master page. But it didn't work. Some told me that the following snippet work for them: % response.sendRedirect(abc.do); return; % I've also tried this, but it didn't work either. I've used Struts 1.2.9 and Tomcat 5.0.30. Please help, thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]