Applet xml file handling

Long time application coder, first time appplet coder:

I have an xml file that needs to be read by my applet (it contains a database).

I'm trying to use this:

URL url =new URL("http://(the file on my webpage)");

XMLDecoder decoder =new XMLDecoder(new BufferedInputStream(url.openStream()));

Which gives me the error:

java.security.AccessControlException: access denied (java.net SocketPermission ...)

Anyone have an idea what I'm doing wrong? I've tried several different things which don't seem to work.

[684 byte] By [galaxyya] at [2007-10-2 20:34:59]
# 1

This is due to the security feature of Java. In order to solve your problem, you need to sign your Java Applet, or setup the security policy by the policytool in the client side.

For more information, please read:

http://java.sun.com/docs/books/tutorial/deployment/applet/security_practical.html

mickey_chonga at 2007-7-13 23:18:10 > top of Java-index,Java Essentials,New To Java...