Writing JSP output to file

M

Mike

Hi,
I'm looking into archiving the html generated by my JSP pages. Can
anyone point me in the direction of where to begin? Ideally I'd like
to save the pages to a folder (with the req'd images, referenced
relatively), then present the folder as a zip file for download.
Thanks for guidance,
Mike
 
D

Dave Dave

Hi,
I'm looking into archiving the html generated by my JSP pages. Can
anyone point me in the direction of where to begin? Ideally I'd like
to save the pages to a folder (with the req'd images, referenced
relatively), then present the folder as a zip file for download.
Thanks for guidance,
Mike

Take a look at Servlet Filters. They will enable you to capture the
response of the JSP page, and then write it to a file/directory.

You should be aware that file IO operations are quite expensive, and
consequently will add latency to the request - response cycle.
 
M

Mike

(e-mail address removed) (Dave Dave) wrote in message
Take a look at Servlet Filters. They will enable you to capture the
response of the JSP page, and then write it to a file/directory.

You should be aware that file IO operations are quite expensive, and
consequently will add latency to the request - response cycle.

Thanks, I'll check that out.
M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top