I am trying to work out a way to save object states in an applet so that the next person who downloads the applet will see it in the state it was left by the previous user(images may be repositioned by the user). Unfortunately, my host does not support java and so serializing is not an option. What would be a recommeded way to deal with this issue. Is saving the data in an XML file a good idea? If so, what libs or docs should I look at? Other ideas?
You would also have to deal with synchronization and file lock issues, not to mention the potential serious security issues, you will have to have a good system to make sure a would be hacker doesn't send your server data that can comprimise your server.
All in all it would be a lot of hassles for what is basically a gimick.
Originally posted by Max Benjamin:
I am trying to work out a way to save object states in an applet so that the next person who downloads the applet will see it in the state it was left by the previous user(images may be repositioned by the user).
what you meant by to save object. Can you give more details ....
The applet takes a string either(I haven't worked out all the details) from a file on the host server or from a parameter in the applet's html. It breaks this string into individual words and an object is created for each word that contains it's name(the individual word as String) and an x position and y position of where it is to be drawn in the applet. The initial set up of the objects(their position) is determined by the font used and applet size. A user can then click and drag on the different words repositioning them on the screen and thus changing their internal x y state. I would like to save these x and y coodinates for each object so that the next user will see what the last user altered and be able to change that.
I'm a noob so any other suggestions are more than welcome. I appreciate those thus far though it's not really "just a gimmick". I think that depends more on the "why" than the "what".