It seems you have two choices:
1- write a client and use the HTTP classes to call your jsp and then save
the info you read back to a file.
2- just take your jsp code, put it in a normal java file (application), and
put your for loop inside of that file. Instead of writing to out.println
just op
Frank Apap wrote:
> Thats not what I really meant. but thanks tho. Im looking for a way to do
> this code in a client application :
>
> (this is obviosly not real code)
> for (int i = 0; i < 1000; i++)
> {
> sendRequestToServer("http://mysite.com/myjsp.jsp?id="+i);
> // Dont know how
eally do this
String bigString = getHtmlFromSite();
// or this.
saveToFile("id"+i+".html", bigString);
}
- Frank
- Original Message -
From: Phil Campbell <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 01, 2000 11:40 PM
Subject: Re
m( fn ) );
fout.writeObject(database);
fout.close();
} catch (Exception e)
// do some error trapping here
}
%>
Hope this helps.
Phil
-Original Message-
From: Frank Apap <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: T
If I have a jsp, lets call it myjsp.jsp, and it takes a paramter id. How
can I save the html created by myjsp.jsp?id=1 to a file (lets say id1.html),
not doing a save as w/ a browser b/c I will need to do it for id from 1 ..
1000.
So in essence what I want to do, is create a java program that wi
>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
I had the same need and I've developed my own bean.
It is very quickly to write down...
Bengt Bäverman wrote:
>
> I'm sorry if this is a simple question -- I haven't had the time to read the
> full spec yet.
>
> I want to save the output generated by a JSP-generated servlet to a .HTML
> file on
f Of Bengt Bäverman
> Sent: 07 May 1999 14:51
> To: [EMAIL PROTECTED]
> Subject: Creating static JSP pages
>
>
> I'm sorry if this is a simple question -- I haven't had the time
> to read the
> full spec yet.
>
> I want to save the output generated by a JSP-ge
I'm sorry if this is a simple question -- I haven't had the time to read the
full spec yet.
I want to save the output generated by a JSP-generated servlet to a .HTML
file on my web server. So that I don't have to call all our business logic
more often than necessary. Can this be done easily?
Is