Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know how to save the response (html) of a jsp page to a file

Status
Not open for further replies.

tras13s

Programmer
Mar 4, 2003
1
IE
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

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top