Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading Files

 
Brian, Haas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get an applet, installed on a user's computer, to read a file from the user's computer when the applet is loaded within a browser (ie Netscape). Sun's webpage says that this can be done if The applet is installed on the local hard disk, in a directory on the CLASSPATH used by the program that you are using to run the applet (ie Netscape). This does not work for me when I try it. How do I do the CLASSPATH part and the file reading part within the applet (i was told it has to be done with some specific code). Thanks to all whom respond.
brian
 
Mike Bwn
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiya Brian,
as far as I know (ive done a bit with applets and security, but not loads) the only way an applet loaded in a browser is ever going to have rights to the local disk is if you explicitly set it in java.policy to have read/wite/whatever permission.??
is this an intranet thing? if so why not edit all users java.policy to give your applet permission.
just an idea
mike b
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic