>I want to save the output generated by a JSP-generated servlet to a .HTML
>file on my web server.
I use http://www.webapp.de/jspexecutor.html
I use it with GNUJSP... but I use the JSP bits of JRun or JSP1.0 EA for the
"normal" JSP stuff. Just include GNUJSP at the end of your classpath and it
all works.
Sample code is something like this:
The properties are:
BaseURL=/home/whatever/htdocs (your document root)
InitArgs=repository=/tmp
jspx = ExecutorBuilder.newExecutor(props);
FileOutputStream fp = new FileOutputStream(output_file);
Hashtable objs = new Hashtable();
objs.put("bean_name", mybean); // matches a USEBEAN tag
jspx.execute("foo.jsp", objs, fp);
fp.close();
... only with lots more trys/catches.
Of course the version of JSP you use for this will be the version that
GNUJSP supports.
Unless anyone can get this to work with some other JSP server....
Richard
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".