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 open a new file at the beginning of the loop using your loop counter
as part of the filename.

#2 makes more sense to me, especially if you own the code to the .jsp

-Erik


At 09:11 PM 6/1/00 -0400, you wrote:
>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 within a loop
>sends requests (myjsp.jsp?id=x) and save the output to idx.html.  The
>problem is I have no clue how to code that program.
>
>Any help would be great.
>
>- Frank
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to