Does anyone know how to save/redirect the response html of a jsp page to a file ( i.e. with extension .html, .txt etc )? I want to save the html code that is sent to the browser on a server thus making it permanent.
The way we did that was to write our own stream and replace the standard stream with it. The for all output we wrote to a file and chained to the original stream. We were working with an old web server that did not support filters.
If your server supports filters that is the more appropriate way to handle that.
Of course i'm assuming using the browser to save the HTML to disk does not solve your problem, maybe that is a bad assumtion. LOL
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.