Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

sendRedirect scheme

Siddhartha Subramanian

2006-12-28

Replies:

Hi



Is there is way we can specify tomcat not to] change the protocol scheme
on redirecting relative URL's?



example



http://localhost/myapp <http://localhost/myapp>



post does s response.sendRedirect("/myapp/mynextlocation?name=test")



tomcat (using 5.5) makes this into



https://localhost/myapp/mynextlocation?name=test
<https://localhost/myapp/mynextlocation?name=test>



and obviously since I do not have anything running on secure mode at the
port 443 this fails..



I tried to do a



response.sendRedirect("http://"+remoteaddress+"/myapp/mynextlocation?nam
e=test")



tomcat just ignored my protocol specification.



any input help will be appreciated.



--Sid

©2008 junlu.com - Jax Systems, LLC, U.S.A.