Results 1 to 1 of 1
- 07-21-2009, 09:52 PM #1
Member
- Join Date
- Jul 2009
- Location
- Seattle, WA
- Posts
- 23
- Rep Power
- 0
A question about redirecting some way other than <% response.SendRedirect(""); %>
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:
or even...Java Code:<% response.setStatus(response.SC_MOVED_TEMPORARILY); %> <% response.setHeader("Location","httpcolonslashslahwwwdotsomesitedotcom"); %>
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?Java Code:<% response.setStatus(307); %> <% response.setHeader("Location","httpcolonslashslahwwwdotsomesitedotcom"); %>
Similar Threads
-
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
<core:forEach var="" begin="+<%=j%>+">???
By freddieMaize in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2008, 01:20 AM -
"Jumble" or "Scramble" Program
By Shadow22202 in forum Java AppletsReplies: 8Last Post: 04-30-2008, 03:42 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks