Hi!
On Mon, 26 Apr 1999 Stuart McLean wrote:
>Michael Holst wrote:
>>
>> Hello,
>>
>> I'm not a Java newbie, but I am not too familiar with the networking
>> classes of our dear "write once, run anywhere" language.
>> The problem is the following, I need to let an applet write a file to a
>> specified http address in order for it to work correctly. How do I
>> acomplish this? If I am correct, the java.io.* only works for local
>> files.
>
>The java.net.URLConnection will allow you to open files/connections to a
>url and get input/output streams on them (which you con manipulate using
>the java.io package). However, you will have to overcome Java's
>security model - simplistically, a normal applet can only access/make
>connections to the server from which it was downloaded.
>
>There are, I believe ways around this using signed applets and certainly
>JDK1.2 has a much more complex and flexible security model but I'm not
>an expert in either of these areas.
Another common approach is to use FTP (you need a FTP server running on the
machine that serves your applet). Maybe the Linlyn class helps you:
http://www.afu.com
Ciao,
Andreas
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]