jeremybwilson
07-21-2009, 03:59 PM
I am seeking a way to redirect and application after responding to it with a response.setStatus(response.SC_OK) status message(s).
Is there some other way to achieve a redirect and would the following be one of those solutions:
<% response.setStatus(response.SC_MOVED_TEMPORARILY); %>
<% response.setHeader("Location","http://www.somesite.com"); %>
or even...
<% response.setStatus(307); %>
<% response.setHeader("Location","http://www.somesite.com"); %>
Second question on this, if HTTP POST parameters are being sent along to the first address, will this (or any) redirect method (besides appending them in a GET URL string) forward them along as POST values to the second (redirect) URL?
Is there some other way to achieve a redirect and would the following be one of those solutions:
<% response.setStatus(response.SC_MOVED_TEMPORARILY); %>
<% response.setHeader("Location","http://www.somesite.com"); %>
or even...
<% response.setStatus(307); %>
<% response.setHeader("Location","http://www.somesite.com"); %>
Second question on this, if HTTP POST parameters are being sent along to the first address, will this (or any) redirect method (besides appending them in a GET URL string) forward them along as POST values to the second (redirect) URL?