One way is to write a servlet that builds the html and before you finish with the response, save the text into a table and then send the response.
Robert S. Harper 801.265.8800 ex. 255 > -----Original Message----- > From: David Wall [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 06, 2004 4:10 PM > To: [EMAIL PROTECTED] > Subject: Capturing HTML using Tomcat 4 > > I've been looking through archives and such for examples of how to capture > the HTML output from a given JSP programmatically so I can archive or do > other things with that HTML. For example, we might do this to record the > text of an agreement that was displayed to a user, in which a JSP generated > the agreement HTML page. The pages may be generated from either HTTP GET or > POST. > > It would be nice to perhaps just have a servlet "include" the response from > a JSP, passing along the GET/POST request to that JSP, but then have the > servlet capture the JSP's response in a string for processing/storage. > O'Reilly has a caching servlet that may help, but I was wondering if anybody > had come out with an elegant way to do this. > > Thanks, > David > > > --------------------------------------------------------------------- > 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]