Is this something which can be achieved ?
Can the OutputStream that is deliverd to the webpage be converted to something.html before it is rendered ?
Thank you .
. . . if you finally decide to bump the post, please try to do so by posting more information! After all, if nobody answered, that's probably because nobody did know an answer.
Your question is quite vague. Are you generating the HTML in a servlet and writing it to the OutputStream? That can be solved with something like the Unix tee command. Create a custom OutputStream that writes one value to two outputs. If you are using JSP's, I don't know if what you want to do is possible, so give us some more details and we may give you more options.
Here is the code snippet
Now that I got that working , this page may or maynot be accessed by the user, I wanted to know If I could call a jsp file and provide the sessionId or something so that I can save the review page behind the scenes.
So I just did this in the jsp , so the content of this page is written out to a file.
<capture:bodyGrab><jsp:include page="/myPage.jsp" flush="true" /></capture:bodyGrab>
Originally posted by Bear Bibeault:
I would have approached this with a servlet filter and response wrapper -- that way there's no on-page goop.
I have a small test project that uses a filter and wrapper to do dump the contents of the page to stdout on my site. It should make for a good starting point.