Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 55039 invoked from network); 7 Oct 2004 10:15:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Oct 2004 10:15:14 -0000 Received: (qmail 14362 invoked by uid 500); 7 Oct 2004 10:14:06 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 14297 invoked by uid 500); 7 Oct 2004 10:14:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14254 invoked by uid 99); 7 Oct 2004 10:14:02 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=URG_BIZ X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [207.155.252.75] (HELO valiant.xo.com) (207.155.252.75) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 07 Oct 2004 03:13:59 -0700 Received: from [192.168.1.2] (ma-plymouthsouth1c-a-240.albyny.adelphia.net [24.49.170.240]) by valiant.xo.com id GAA16615; Thu, 7 Oct 2004 06:13:57 -0400 (EDT) [ConcentricHost SMTP Relay 1.17] Errors-To: Subject: Re: response.sendRedirect() From: Ben Souther Reply-To: bsouther@fwdco.com To: Tomcat Users List In-Reply-To: <20041007.aSo.04149300@192.168.42.110> References: <20041007.aSo.04149300@192.168.42.110> Content-Type: text/plain; charset=UTF-8 Organization: F.W. Davison & Co, Inc. Message-Id: <1097143862.26568.19.camel@lumpy> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 07 Oct 2004 06:11:02 -0400 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Are you getting any error messages in your log files? In your browser window? It sounds like your trying to call sendRedirect after you've already started sending output to the browser. Try moving the include to the very top of the jspa page. On Thu, 2004-10-07 at 03:04, Pablo Carretero S=C3=A1nchez wrote: > Sorry, >=20 > I did more test about the problem. >=20 > I have one JSP("jspa") and ("jspb") from jsp I do an include of "jspb" an= d > from "jspb" I have a sendRedirect("www.google.com"). >=20 > If I invoke to http://......../../jspa.jsp it doesn't work, but If I invo= ke > directly to "http://....../..../jspb.jsp It works ok. >=20 >=20 > best regard >=20 >=20 > Ben Souther (bsouther@fwdco.com) escribi? > > > > Without seeing the rest of your code, I'll guess that the problem is > > that you've started the relative link with a "/". > > > > Try without it. If you have to back up a directory use > > "../jknopkn/prueba.jsp". > > > > > > On Wed, 2004-10-06 at 11:11, Pablo Carretero S=C3=A1nchez wrote: > > > Hi, > > > > > > I don't test in other Tomcat version. I'm trying a sendRedirect() in= one JSP. > > > And it doesn't work. The code is: > > > > > > response.sendRediredt("/jknopkn/prueba.jsp"); > > > > > > QM (qm300@brandxdev.net) escribi=C3=B3: > > > > > > > > On Wed, Oct 06, 2004 at 04:38:54PM +0200, Pablo Carretero S?nchez w= rote: > > > > : I have a urgent problem response.sendRedirect() in Tomcat 5.0.27. > > > > : > > > > : It doesn't work in my appl. > > > > > > > > What, specifically, doesn't work? > > > > Did this same code work in a previous version of Tomcat 5.0.x? > > > > > > > > etc, etc. We're all pretty sharp here, but I don't think any of us= are > > > > clairvoyant. ;) > > > > > > > > -QM > > > > > > > > -- > > > > > > > > software -- http://www.brandxdev.net > > > > tech news -- http://www.RoarNetworX.com > > > > > > > > > > > > -------------------------------------------------------------------= -- > > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.or= g > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org