Write file to webserver from an Applet
Hi, I am new to Java,
I have simple applet which works fine. I just want to show some information which are enetred by some users to all the users of the applet. For that I use a small light weight DB (sqlite version 3). I am creating the connection as follows
Connection conn =DriverManager.getConnection("jdbc:sqlite:"+System .getProperty("user.dir")+"\\GT.db");
Now my problem is that the applet create the GT.db file in the client machine as the System.getProperty("user.dir") return the user directory on the client , not on the server. Hence i am not able to achieve what I want. How do I save the file on the web server instead of the client ?
I am using a signed applet. I dont have much control over the web server to install programs or add server side processes; but I can upload files. I googled and found that an applet can read and write files to the host where it is coming from. If so how do i do it? can any one help me please ?