• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read file on server  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writting an Applet to read text file on a server.
and the Applet is on my PC.
To read on my local PC it's work.
But not on server.
How can I do this?
I set up security file on my PC

Command line to launch my applet :
appletviewer -J-Djava.security.policy=mysecurity.txt TEST.html
Content of mysecurity.txt save in D:\jdk1.3\jre\lib\security\:
grant codeBase "http://nameOfServer/file/-" {
permission java.net.SocketPermission "*", "accept, connect, listen, resolve";
I add java.security to : D:\jdk1.3\jre\lib\security\java.security the line

[This message has been edited by ndjanda (edited November 10, 2000).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!