Privacy and Security Notice

Archived Messages for JAVA@cebaf.gov: save user inputs by Java Applet???

save user inputs by Java Applet???

dingj@diam.cebaf.gov
Fri, 31 May 1996 15:19:31 -0400

Dear Java programmers:

I'm now programming with Java Applet to provide a user interface on World
Wide Web to a database. This interface is supposed to be able to get input data
from the world-wide users and display it on the web.

Now I have a big problem regarding to the data storage. In the current
version of this Applet, when you close your brower, you will lose all the data
you just put in. The reason is that the data has not been stored to somewhere
else. A file seems the best place to store the data, but because of the Applet
security reason, you can't read or write a file from/to the server,neither can
you read/write a file from/to a local system. This makes me think that Java
Applet really has a big problem: For the security reason, it doesn't allow
file read/write. At the same time, it provides user interface methords to
facility world-wide users' input. But if the input can't be saved, it may be
useless to deal with the databases. Because of this limitation,people may
would rather choose a CGI script instead of Java Applet. What do you think
about it?

DingJun