This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am writing a database-style application to be launched using Web Start. When the application starts, it reads data from files that are stored on the server. As the program runs, the data could potentially be changed by the user. I need help figuring out how to save the current status of the data on the server when the program exits. I've tried using URL and URLConnection for file I/O, and this works for reading the data, but it doesn't work for saving the data. When my program exits, no exceptions are thrown, but no changes are made to the data files on the server. I've spent quite a bit of time researching this problem, and it seems like I might have to use a servlet or something to process the data on the server-end. The problem is, I don't know anything about servlets or CGI. Any suggestions for the simplest way to achieve the results I need would be much appreciated!