hi!! ,
i have loaded
tomcat server on to my local machine and i am running my
servlets on that. i have written a servlet to create a file , i am calling this servlet from a
applet ,it is working fine on my server , but when i loaded it onto another tomcat server which is the main server which hosts websites , i am not able to create a file , the communication between the applet and servle and the applet is fine ,
try {
File outputFile = new File("window_surf_test");
FileOutputStream fos = new FileOutputStream(outputFile);
PrintWriter pwriter = new PrintWriter(fos);
pwriter.println(stringValue1);
pwriter.println(stringValue2);
pwriter.println(stringValue3);
//pwriter.println(f);
System.out.println( " Check the result: " + stringValue2 );
pwriter.close();
fos.close();
} catch (FileNotFoundException e) {
System.err.println("FileStreamsTest: " + e);
}
this is the code i am using to create the file , please tell me what could be the possable reason for not creating the file on the other server
are there any security issues that have to be resolved....
another question , where exactly is the file created??? i mean the path..
thanks......