Re: Java Serialized objects
From: Christophe Vanfleteren (c.v4nfl3t3r3n_at_pandora.be)
Date: 04/25/04
- Next message: Andrew Thompson: "Re: Java Serialized objects"
- Previous message: Chandrashekar Tippur: "Java Serialized objects"
- In reply to: Chandrashekar Tippur: "Java Serialized objects"
- Next in thread: Andrew Thompson: "Re: Java Serialized objects"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Apr 2004 07:40:55 GMT
Chandrashekar Tippur wrote:
> All,
>
> I have a serialized object which reads and writes to a file. While it
> reads, it fills up its attributes. When I try to run this on a
> astandalone machine, it works fine but when I try with client server
> (Via the browser) it is coming up with AcccessControlException and the
> exception looks like the program is trying to write in the client
> rather than the server. I want both read and write from the file to
> happen at the server.
> Please let me know where I am going wrong.
>
> Shekar
Any File object works on the *local* filesystem. So for an applet, this is
the client the applet is running on.
You can read from a file on the server as easy as from a local one using an
URL, but writing to it is not that simple. You'll have to use something
like RMI, HTTP Post or FTP.
-- Kind regards, Christophe Vanfleteren
- Next message: Andrew Thompson: "Re: Java Serialized objects"
- Previous message: Chandrashekar Tippur: "Java Serialized objects"
- In reply to: Chandrashekar Tippur: "Java Serialized objects"
- Next in thread: Andrew Thompson: "Re: Java Serialized objects"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|