Does anyone know a good way of capturing the output generated by a JSP so that it can be written to a file ? (I basically want to use .JSP's as templates to generate a static HTML site).
 
What I'd like to do is have a wrapper JSP which does 2 things, 
 
1. Redirects out so that it is writing to a file rather than returning stuff to the server ...
2. jsp:include's another JSP file whose output it want's to capture.
 
I can sort of see a way to do this by providing my own JSPWriter, but does anyone have any better ideas or any real
experience of doing something like this ?
 
I guess the other way is to use something like JSPExecutor ....
 
Any ideas greatfully received,
 
John.
 

Reply via email to