> 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,
You could write a Java application that uses HTTP to grab HTML output generated by
JSPs and write it to files.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html