Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 65771 invoked from network); 15 Nov 2004 20:32:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Nov 2004 20:32:37 -0000 Received: (qmail 7829 invoked by uid 500); 15 Nov 2004 20:32:21 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 7808 invoked by uid 500); 15 Nov 2004 20:32:21 -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 7795 invoked by uid 99); 15 Nov 2004 20:32:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [63.244.250.133] (HELO warhawk.mpi.com) (63.244.250.133) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 15 Nov 2004 12:32:17 -0800 Received: from lightning.mpi.com (lightning [63.244.252.11]) by warhawk.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id iAFKWDxk010713 for ; Mon, 15 Nov 2004 15:32:13 -0500 (EST) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [63.244.252.30]) by lightning.mpi.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id iAFKViw1024846 for ; Mon, 15 Nov 2004 15:32:10 -0500 (EST) X-MIMEOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Location: redirection Date: Mon, 15 Nov 2004 15:30:50 -0500 Message-ID: <9C5166762F311146951505C6790A9CF80229C649@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Location: redirection Thread-Index: AcTLURIekCwSV4lTQNWFf4IG79yEngAAIOvA From: "Shapira, Yoav" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, >We're using perl within tomcat 4.1.27. The perl scripts run all right= , >but the redirections don't work at all. Using an external mechanism (such as a CGI perl scripts in your case) for redirection in Tomcat is tricky at best, and doomed to failure at worst. The reason is that the script is not really part of the servle= t request/response pipeline. Rather, it is invoked as an exec by a Tomc= at servlet (in your case, the CGI servlet that ships with Tomcat, I assume). That servlet can easily do a response redirect or request forward, but= the script cannot. Accordingly, if you stick with the script at all, modify it to return the redirection URL, and have the servlet (a custom extension to the C= GI Servlet that ships with Tomcat probably) read and act upon this URL by= doing the redirection. Yoav This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org