Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 81327 invoked by uid 500); 4 Apr 2001 17:47:49 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 81318 invoked from network); 4 Apr 2001 17:47:48 -0000 Received: from unknown (HELO mta1n.bluewin.ch) (195.186.1.210) by h31.sny.collab.net with SMTP; 4 Apr 2001 17:47:48 -0000 Received: from gael (195.186.181.164) by mta1n.bluewin.ch (Bluewin AG MX engine 5.5.021) id 3AB0E8E7008EB272 for tomcat-user@jakarta.apache.org; Wed, 4 Apr 2001 19:46:01 +0200 From: =?us-ascii?Q?Gael_Oberson?= To: Subject: RE: Servlet Chaining... Date: Wed, 4 Apr 2001 19:49:15 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20010404173257.19534.qmail@web10502.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N No, it doesn't work, because the HttpServletRequest class used in HttpServlet doesn't implement the getRequestDispatcher method... But it we can make your idea work, I don't understand how my XML file is sent to the cocoon servlet... My XML file is printed do the response (out.print(String);), and with the forward() method, the XML data is not sent.. How does it work?? -----Message d'origine----- De : Scott Walter [mailto:tx_scottwalter@yahoo.com] Envoye : mercredi, 4. avril 2001 19:33 A : tomcat-user@jakarta.apache.org Objet : Re: Servlet Chaining... Could you use a request dispatcher to forward the request to the second servlet? >>From the first servlet's request object you could code this: RequestDispatcher rd = req.getRequestDispatcher("path to second servlet"); rd.forward(); --- Gakl_Oberson wrote: > > > Hello > > I try to use Servlet Chaining with Tomcat. > Can I do that with a tag in the web.xml file (with > for > example), or must I modify my Request parameters?? > does anyone know how to > do that??? > > I have a Servlet that generates an complete and > valid XML file from a > database, and this file must be processed by the > Cocoon servlet and then be > returned to the client. That's it. Can anyone help > me please??? > > Thanks. > > > > > > *********************************************** > Gakl Oberson > Computer scientist > Student in Computer Science Engineering (HES) > > Switzerland > goberson@swissonline.ch > i00gober@eif.ch > *********************************************** > ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Scott __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/