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.
Good luck
Stuart
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]