Thanks Craig, for the input. I was able to capture the output using servlet filter and the response wrapper classes.
-----Original Message----- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 1:39 AM To: Struts Users Mailing List Subject: RE: Storing the Output of a Servlet to Database On Tue, 3 Jun 2003, Rajesh P wrote: > Date: Tue, 3 Jun 2003 19:53:39 +0530 > From: Rajesh P <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: Storing the Output of a Servlet to Database > > Hi, > I am aware of how to store the contents to the database. What i am > really interested is how to capture the output of the servlet. Forget > PDF, assume that the Servlet is just serving a normal html content. > After the servlet has given this to the response, how to capture this as > a byte stream is my real question. In a Servlet 2.3 environment, you can easily create a Filter that wraps the response and copies the output into a buffer to write to your database, as well as sends it back on to the client. There have been articles written describing this sort of thing that a Google search ought to find for you. > Thanks, Rajesh Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]