hi ,
i am trying to create a file using a
servlet , this servlet is invoked form an
applet , i am getting an exception saying permission denied.. , the code of my program is ...
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);
stringValue1=e.toString();
}
Please tell me how to resolve this problem .......,
thaks ......