Re: writing jsp output to a file

2000-11-14 Thread Vinny
try this: <%@ page import="java.io.*" %> <% FileWriter tempFile = new FileWriter("/tmp/gold.txt",false); String data = "To be or not to be"; PrintWriter toFile = new PrintWriter(tempFile); toFile.println(data); toFile.close(); %> this writes "To be or not to be" into /tmp/gold.txt on a uni

Re: writing jsp output to a file

2000-11-14 Thread Stefan Woithe
Joe Laffey wrote: > > On Mon, 13 Nov 2000, John Ellis wrote: > > > All you need to do is create a virtual browser: > > > > URL pageYouWant = new URL(completeRequestString); > > InputStream in = pageYouWant.openStream(); > > // burn off the header from in, then write the rest to a file... > > > >

Re: writing jsp output to a file

2000-11-13 Thread Joe Laffey
On Mon, 13 Nov 2000, John Ellis wrote: > All you need to do is create a virtual browser: > > URL pageYouWant = new URL(completeRequestString); > InputStream in = pageYouWant.openStream(); > // burn off the header from in, then write the rest to a file... > > This will all be done, of course, in a

Re: writing jsp output to a file

2000-11-13 Thread John Ellis
All you need to do is create a virtual browser: URL pageYouWant = new URL(completeRequestString); InputStream in = pageYouWant.openStream(); // burn off the header from in, then write the rest to a file... This will all be done, of course, in a completely seperate JVM than your Tomcat JVM. It s

writing jsp output to a file

2000-11-13 Thread Juan Ramirez
I would like to write the output of a jsp file to a static html file instead of sending it out to a browser. I have a pagebuilding system that uses the power of jsp to do a lot of things, but I need to write the resulting jsp to a file instead of streaming it out. Has anyone done anything like t