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 to really do this
>             String bigString = getHtmlFromSite();
> // or this.
>              saveToFile("id"+i+".html", bigString);
> }
>

The "how to do this" for both of these tasks is to use the java.net.URLConnection
class.  See the Javadocs, and/or the Networking Trail in the Java Language Tutorial
(http://java.sun.com/docs/books/tutorial) for the details.

>
> - Frank

Craig McClanahan

===========================================================================
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