• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

applet security issue

 
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I'm about to developp an applet for HTTP file downloads.
it will use a JFileChooser to select a local dir where the files should be saved.

I know that applets run in a sandbox security restrictions, so it won't allow to write files to user machine neither invoke a fileChooser.
so what are the available options other than signing the applet ?
i mean is there any solution other than digital signing to be able to use this applet ?

thanking you much.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are some ways to do this that involve having the user edit a local java.policy file, but that's defintely more than you could ever ask of a real user -- it's just something you can do during development. No, there's no way to get around the digital signature thing. Why do you not want to do things the right way?

Note, by the way, that from your description it sounds like you could simply use HTML links to remote documents, and let the browser handle saving the files. Why do you have to use an applet?
 
Yahya Elyasse
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll definetly do things the right way. I just was not sure if there is another solution to applet security sandbox other than digital signing.

For your proposition ;it is not appropriate for my project : for this is going to be a multiple files download : i.e i'll have to click one single button to download an indefinite number of http files in the same time. the http url locations of files will be set by applet params.

that's it.
thank you for your reply.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic