Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 99313 invoked by uid 500); 1 Aug 2001 19:31:53 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 99306 invoked from network); 1 Aug 2001 19:31:53 -0000 Received: from fe4.rdc-kc.rr.com (HELO mail4.wi.rr.com) (24.94.163.51) by h31.sny.collab.net with SMTP; 1 Aug 2001 19:31:53 -0000 Received: from PICO ([65.29.152.57]) by mail4.wi.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Wed, 1 Aug 2001 14:31:44 -0500 Message-ID: <008201c11ac0$99281b30$6401a8c0@PICO> From: "Chris Nokes" To: References: <996689211.2556.45.camel@aquaman> Subject: Re: save dynamic jsp content Date: Wed, 1 Aug 2001 14:31:44 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N An eaiser way may be to create a BodyTagSupport to capture the output in the "doAfterBody" method and send it to the mail input stream or write to the file system first if desired. This doesn't require an extra network call and thread. Chris ----- Original Message ----- From: "Calvin Yu" To: Sent: Wednesday, August 01, 2001 1:06 PM Subject: Re: save dynamic jsp content The easiest way would be to write a client that makes a HTTP request to the server and captures the HTML output that way. Calvin On 01 Aug 2001 13:40:58 -0400, Mustapha Essalihe wrote: > > Hi, > I am new to struts. In my action class (perform) I want to run a jsp page > in background and save its content in an html file. How Can i do that in > perfom method ?. After that i know how i will send this html file by e-mail > (usinj java smtp) and forward the user to an adequate location (success). > Thanks in adavance. > Mustapha Essalihe >