Java Mailing List Archive

http://www.junlu.com/

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

RE: sendRedirect scheme

Siddhartha Subramanian

2006-12-29

Replies:

Hi Rainer

Thanks for the information, I have tried all the possible combinations

<connector port="80" protocol="HTTP/1.1" scheme="http".../>

In spite of all this the protocol on sendRedirect sets the URL to be
https.. I am having trouble bringing up the source code for this, I will
probably have to check to see what's going on that front.. anybody have
any more insights into this?

--Sid

-----Original Message-----
From: Rainer Jung [mailto:rainer.jung@(protected)]
Sent: Thursday, December 28, 2006 5:02 PM
To: Tomcat Users List
Subject: Re: sendRedirect scheme

You can use the following config params in the connector element for the
connector you are using (see
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html):

- protocol  
- proxyName  
- proxyPort  
- redirectPort  
- scheme  
- secure

Regards,

Rainer

Siddhartha Subramanian schrieb:
> 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
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

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