This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet Security Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Security Exception" Watch "Applet Security Exception" New topic

Applet Security Exception

Brian Moakley

Joined: Apr 12, 2007
Posts: 11
Hey Everyone ... just need a little bit of direction. I'm currently developing an applet off an existing application. I'm looking to pass a param into the applet that gives the location of a file on the server that is parsed by the applet. The applet is not touching the user's machine so everything is happening on the server. Right now, I'm getting some security exceptions when the applet tries to open the remote file. Is there a way I can access the file without having to get the applet signed?

Any help is appreciated. Thanks Brian!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41089
As long as the file is on the same server where the applet was served from, it should work without the applet being signed. See "HelloServerFile" in for an example of how to do it.

Ping & DNS - my free Android networking tools app
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Applet Security Exception
Similar Threads
RMI callback from applet behind firewall
applet can't upload file through orion user manager
how can an applet read a file on the hard disk,when the applet is run in a browser?
accesing applets from servlets