Hmm ... you may need to file a bug, or do some Tomcat debugging. One thing
to try, use:
reponse.sendRedirect( http://beru.cariboulake.com/servlet/Servlet2; );
I bet that would work ... looks like the code that processes sendRedirect()
first tries to
make an Url out of the specified location,
in the implantation, unlike
JRun and the other servlet engines, which can choose what they want to do.
Randy
-Original Message-
From: Joseph D Toussaint [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 6:03 PM
To: [EMAIL PROTECTED]
Subject: RE: problem with getPort
: Sunday, July 08, 2001 6:03 PM
To: [EMAIL PROTECTED]
Subject: RE: problem with getPort()
I'm trying to create a new URL to go to. If I wanted to use the
request.getPort() method I'd have to also call getHostName() and
manually construct the URL. It was my understanding
to put a return on the next line - sending a redirect does not
stop the JSPs processing.
Randy
-Original Message-
From: Joseph D Toussaint [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 8:24 AM
To: [EMAIL PROTECTED]
Subject: RE: problem with getPort
: RE: problem with
getPort()
07/09/2001 08:57
AM
Please respond
to tomcat-user
Ok now I'm convinced that I have something misconfigured. I wrote 2
simple servlets
http://beru.cariboulake.com
PROTECTED]
jdtoussa@caribocc: (bcc: Fernando
Salazar/CAM/Lotus)
ulake.com Subject: RE: problem with
getPort()
07/09/2001 08:57
AM
Please respond
]
Subject: problem with getPort()
I'm trying to get the port off of a request object and it is returning
port 0.
Here is how I'm getting the URL I came from.
StringBuffer came_from = HttpUtils.getRequestURL(request);
While reconstructing a new URL
I'm trying to get the port off of a request object and it is returning
port 0.
Here is how I'm getting the URL I came from.
StringBuffer came_from = HttpUtils.getRequestURL(request);
While reconstructing a new URL
java.net.URL tmp_url = new java.net.URL(came_from.toString());
Is there a reason that you aren't using request.getPort()?
-Original Message-
From: Joseph D Toussaint [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: problem with getPort()
I'm trying to get the port off of a request