• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading client-side file from applet

 
meera sood
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone,
is there any way in which i can get a listing of all files on the client machine, then select a particular file, and display the contects of this file - all in my applet.
please help me out in this....
thank you in advance for the help extended.
Meera
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
By default an applet cannot read files on the client machine.
Trusted applets, however, can do that. In order for an applet to be considered trusted by the client, the applet class either has to be included in the classpath of the jre running the applet (a bit difficult if you don't have the class file on your local machine), or you can sign the applet.
For more info: http://java.sun.com/sfaq/#read
/J
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic