I've an desktop application that generates a file that contains an serialized object and then it be used to load the last state from object(It saves a configuration of a neural network), I don't have any problem running the application as a desktop application, however I need to port this application to an application web, I use the java servlet to do this,but I have some problems here, when I call the method that save the serialized object this doesn't create the file so I'm not able to use it later. I need some basic examples to do this in a standard way.
If you need more information ask me.
I save the file in the following way:
FileOutputStream ostream = new FileOutputStream(namefile);
ObjectOutputStream p = new ObjectOutputStream(ostream);
p.writeObject(this);
It works in the desktop application