Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 13420 invoked by uid 500); 25 Jun 2001 13:40:55 -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 13266 invoked from network); 25 Jun 2001 13:40:52 -0000 Received: from heyde225.heyde.de (HELO serv-nt-munich.baufi) (62.225.34.225) by h31.sny.collab.net with SMTP; 25 Jun 2001 13:40:52 -0000 Subject: Antwort: calling other servlets inside a servlet... To: tomcat-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: Christian.Schildt@Elaxy.com Date: Mon, 25 Jun 2001 14:40:14 +0100 X-MIMETrack: Serialize by Router on serv-nt-munich/Atzlinger(Release 5.0.6a |January 17, 2001) at 25.06.2001 15:40:42 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi, Try the following try { RequestDispatcher dispatcher =3D getServletContext().getRequestDisp= atcher ( TargetServletPath ); dispatcher.forward( request, response ); } catch( IOException e ) { System.out.println( e ); } catch( ServletException e ) { System.out.println( e ); } Mit freundlichen Gr=FC=DFen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: christian.schildt@elaxy.com ________________________________________________ ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei M=FCnchen Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com ________________________________________________ = =20 Pedro Salazar = =20 Kopie: = =20 Thema: calling other = servlets inside a servlet... =20 25.06.2001 14:27 = =20 Bitte antworten an = =20 tomcat-user = =20 = =20 = =20 Greetings, how can I call another servlet inside a servlet? And I would like to have two options: one is that the servlet called is the final servlet, and the other option is calling a servlet just to get a result (outputstream) o the main servlet and continue processing the main serv= let. This is just a servlet question specification or it depends if I'm working on tomcat or other product? thanks, Pedro Salazar. =