B
BW
I have a signed applet with full permission. But the applet
showDocument method seems not work with file protocol. It works fine
with http protocol. I will really appreciate it if anyone know how
to make it work.
The below is the code snippet:
...
try
{
//test file protocol
applet.getAppletContext().showDocument(new URL
("file:///c:/test.txt"),"_blank");
//test http protocol
applet.getAppletContext().showDocument(new
URL("http://google.com"),"_blank");
}
catch(Exception e)
{
e.printStackTrace();
}
....
showDocument method seems not work with file protocol. It works fine
with http protocol. I will really appreciate it if anyone know how
to make it work.
The below is the code snippet:
...
try
{
//test file protocol
applet.getAppletContext().showDocument(new URL
("file:///c:/test.txt"),"_blank");
//test http protocol
applet.getAppletContext().showDocument(new
URL("http://google.com"),"_blank");
}
catch(Exception e)
{
e.printStackTrace();
}
....