Melissa,
As Craig said, please submit a bug report about this. I'd also appreciate
it if you could try accessing the SnoopServlet that ships with Tomcat and
see if the server name that it reports includes the scheme. That way we'll
have a known test case to validate against.
Also include the details of your configuration. I just ran SnoopServlet
under Tomcat 3.2.1 and 3.2.2-dev using the standalone server and behind IIS
and the results look OK. If you are seeing something different then the
problem must be in the connector. The more information you can give us the
better.
Thanks,
Marc Saegesser
> -----Original Message-----
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 6:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Problem with request.getServerName in redirect
>
>
> Melissa Matthews wrote:
>
> > I am using Apache/Tomcat 3.2.1. When I use
> request.getServerName to build
> > the page for the redirect, the http:// is included in the server name.
> > Why is this?
> >
> > This is the code I'm using:
> >
> > StringBuffer loginpoint = new StringBuffer();
> >
> > loginpoint.append(request.getScheme())
> > .append("://")
> > .append(request.getServerName())
> > .append(request.getRequestURI());
> >
> > The problem is I end up with http://http://.....
> >
>
> Sounds like a bug in 3.2.1.
>
> >
> > Any suggestions?
> >
>
> Could you please report this to the bug tracking system at:
>
> http://nagoya.apache.org/bugzilla/
>
> under product "Tomcat 3"? We are working on a 3.2.2 update, and
> it would be
> useful to get this bug fixed in time to make that release.
>
> Craig McClanahan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]