You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Miguel Angel Medina Lopez <ma...@logic-factory.com> on 2002/03/25 13:59:51 UTC

sendRedirect and port 0

Hi all:

I'm using tomcat 3.2.3 with apache, and I have a problem with the
response.sendRedirect method. When I use it with a relative URL the port 0
was added to the result url, but the original didn't have it.

For example:
I call the servlet with the URL "http://www.logic-factory.com/servlet/Hello"
and in the code I write:
      res.sendRedirect("../index.jsp");

The servlet redirect the browser to the URL
http://www.logic-factory.com:0/index.html

Can anyone help me? Is a problem with the tomcat configuration or with the
sendRedirect Method.

Than you.

-------------------------------------------------------------
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España






--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>