Return-Path: Delivered-To: apmail-jakarta-watchdog-dev-archive@apache.org Received: (qmail 62018 invoked from network); 7 Oct 2002 22:30:18 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Oct 2002 22:30:18 -0000 Received: (qmail 7867 invoked by uid 97); 7 Oct 2002 22:31:07 -0000 Delivered-To: qmlist-jakarta-archive-watchdog-dev@jakarta.apache.org Received: (qmail 7826 invoked by uid 97); 7 Oct 2002 22:31:07 -0000 Mailing-List: contact watchdog-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Watchdog Developers List" Reply-To: "Watchdog Developers List" Delivered-To: mailing list watchdog-dev@jakarta.apache.org Received: (qmail 7782 invoked by uid 98); 7 Oct 2002 22:31:06 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Mon, 7 Oct 2002 15:30:12 -0700 (PDT) From: "Craig R. McClanahan" To: watchdog-dev@jakarta.apache.org Subject: Re: Tomcat vs Websphere sendRedirect (fwd) Message-ID: <20021007152905.U22910-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sounds like a good opportunity for an additional Watchdog (and ultimately CTS) test ... Craig ---------- Forwarded message ---------- Date: Mon, 7 Oct 2002 15:21:17 -0700 (PDT) From: Craig R. McClanahan Reply-To: Tomcat Users List To: Tomcat Users List Subject: Re: Tomcat vs Websphere sendRedirect On Mon, 7 Oct 2002, Jared Reeve wrote: > Date: Mon, 7 Oct 2002 14:56:36 -0700 (PDT) > From: Jared Reeve > Reply-To: Tomcat Users List > To: tomcat-user@jakarta.apache.org > Subject: Tomcat vs Websphere sendRedirect > > > In WebSphere I do a sendRedirect("/servlet/MyServlet") within a servlet > and it works successfully. It prepends the host and root URI. Why > can't I do the same thing in Tomcat? It does not prepend the root URI. > Do I not have something configured correctly? I would like to port this > application without changing any code. Thanks. function SetDomain(d) { > document.domain = d; } > Websphere appears to be broken in this respect. See the last sentence of the first paragraph in the Javadocs for sendRedirect(): If the location is relative with a leading '/' the container interprets it as relative to the servlet container root. Note that the servlet container root is *not* the same as the context root, unless you happen to be in the default webapp that has a context path of "". Craig -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: