No problem, write a servelt or other JSP page that does a method='post' to
the JSP in question. You will have to read the output of the page into a
variable. Then you can write the variable to both a file and out.println.
The only catch is you will have to have a class that can do a post! See
We had a similar task that Andy described and solved it in almost exactly a
way Geoff suggested.
But if I were to approach it now, I'd rather use filter and owerwrite response
object.
That saves extra HTTP connection within request processing and looks more
elegant anyway.
~boris
Geoff
Can anyone tell me if this is possible. I have a JSP page that contains
information about an order that was just entered (Essentially a
confirmation page). What I want to do is somehow intercept the output
stream inside the JSP page and write it to a file, as plain html, which I
will later
I think you can use a Filter to do that.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 8:32 AM
To: Orion-Interest
Subject: Capturing the output of a JSP page as HTML
Can anyone tell me if this is
Hi, Thanks for the reply to my question. I am not familiar with filters. How would I do this?elephantwalker [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]03/01/2001 09:42 AM PSTPlease respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc: bcc: Subject: RE: Capturing the output of a JSP
Can anyone tell me if this is possible. I have a JSP page that contains
information about an order that was just entered (Essentially a
confirmation page). What I want to do is somehow intercept the output
stream inside the JSP page and write it to a file, as plain html, which I
will later