From tomcat-user-return-85865-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Fri Dec 05 18:55:03 2003 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 86292 invoked from network); 5 Dec 2003 18:55:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Dec 2003 18:55:03 -0000 Received: (qmail 30492 invoked by uid 500); 5 Dec 2003 18:54:25 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 30420 invoked by uid 500); 5 Dec 2003 18:54:25 -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 30381 invoked from network); 5 Dec 2003 18:54:24 -0000 Received: from unknown (HELO Navgw.phillynews.com) (161.188.204.247) by daedalus.apache.org with SMTP; 5 Dec 2003 18:54:24 -0000 Received: from phlxch02.phillynews.com ([10.232.201.208]) by Navgw.phillynews.com (NAVGW 2.5.2.21) with SMTP id M2003120513542714511 for ; Fri, 05 Dec 2003 13:54:27 -0500 Received: by phlxch02.phillynews.com with Internet Mail Service (5.5.2655.55) id ; Fri, 5 Dec 2003 13:54:28 -0500 Message-ID: From: "Januski, Ken" To: Tomcat Users List Subject: RE: RequestDispatcher.forward to cgi? Date: Fri, 5 Dec 2003 13:54:26 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3BB61.34CCE190" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3BB61.34CCE190 Content-Type: text/plain; charset="iso-8859-1" Thanks Tim, I'll keep working on it then and see where it gets me. Ken -----Original Message----- From: Tim Funk [mailto:funkman@joedog.org] Sent: Friday, December 05, 2003 12:54 PM To: Tomcat Users List Subject: Re: RequestDispatcher.forward to cgi? I would think that the CGI servlet would work on a forward but you must be sure that: 1) No input streams were open (or that they are compatible with the CGIServlet) 2) On a POST, you do not call or look at request parameters or the input stream since it looks like the CGIServlet wants to pass the Inputstream right to the servlet. 3) I am unsure of how the CGI servlet goes to look for the exe with respect to a forward. (But I think you should be ok) -Tim Januski, Ken wrote: > Tim, > > Now that I look at them closely I see that most of them are due to a looping > problem in my program. So it just logs over and over that it's forwarding > the request. I'll investigate to see if the loop is due to an error in my > progamming (certainly possible since I've had to tinker with a very large > controller servlet in order to incorporate this cgi page) or due to a > failure in forwarding. > > What I was hoping in asking the question though was to find out whether > anyone had done this successfully or not. I'm happy to troubleshoot the > problem if I think there's a chance of success. But I hate to spend the time > on it if I'm just trying to do the impossible or the dumb. > > Ken > > > -----Original Message----- > From: Tim Funk [mailto:funkman@joedog.org] > Sent: Thursday, December 04, 2003 9:21 PM > To: Tomcat Users List > Subject: Re: RequestDispatcher.forward to cgi? > > > Just curious ... what are the errors? > > -Tim > > Januski, Ken wrote: > > >>I've finally managed to get cgi working in Tomcat. Now I need to forward >>from a servlet to a cgi page. But both RequestDispatcher.forward and >>RequestDispatcher.include are failing. I'm not surprised that include does >>but I thought it might be possible with forward. >> >>Since this is part of a large application that keeps track of the session >>I'd like to be able to include the cgi page in the application. But I'm >>beginning to think that's not possible. So I wonder if anyone knows > > whether > >>it's possible to forward to a cgi page within the same Tomcat webapp. If > > not > >>I'll save myself a lot of trouble and just make it a separate webapp with >>just a cgi component. >> >>Thanks for any advice. >> >>Ken >> >>P.S. I'm using cgi with perl because I can't find a class to add IPTC >>information to a Jpg and I don't have time to write it myself. Such a > > module > >>does already exist in Perl. >> >> >> > > > > --------------------------------------------------------------------- > 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 ------_=_NextPart_001_01C3BB61.34CCE190--