Re: Creating static jsp pages.

2000-06-03 Thread Erik Tennant
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

Re: Creating static jsp pages.

2000-06-01 Thread Craig R. McClanahan
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

Re: Creating static jsp pages.

2000-06-01 Thread Frank Apap
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

Re: Creating static jsp pages.

2000-06-01 Thread Phil Campbell
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

Creating static jsp pages.

2000-06-01 Thread Frank Apap
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

Re: Creating static JSP pages

1999-05-07 Thread Richard Dallaway
>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

Re: Creating static JSP pages

1999-05-07 Thread Roberto Torresani
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

Re: Creating static JSP pages

1999-05-07 Thread Colin Wilson-Salt
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

Creating static JSP pages

1999-05-07 Thread Bengt Bäverman
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