about applet
Hi all.
A little question: I know that an applet can't read and write
files on pc but an applet can read a file on a server?
I have this statements:
( fileNameParam = //WEBGNI/pc_Pignotti/psj.rtf )
JTextPane1.setContentType("text/rtf");
try {
java.net.URL url = new
java.net.URL("file",null,fileNameParam);
JTextPane1.setPage(url);
}
catch (Exception e) {
System.out.println("Exception reading URL: " +
e.getMessage());
}
In kawa it works but with netscape I have this message from java console
:
Exception reading URL: access denied (java.io.FilePermission
\\WEBGNI\pc_Pignotti\psj.rtf read)
If otherwise i change the statement so:
java.net.URL url = new java.net.URL(fileNameParam);
I have this message :
Exception reading Url : no protocol : //webgni/pc_pignotti/psj.rtf
Where is the proble?
Thanks

