Have a look at this page http://javaalmanac.com/egs/java.security/UsePolicy.html. For editing policy-files you can use the policytool.exe that ships with Java. If the HTTP-server and the DB-server are on different machines, the permission you have to give is "NetPermission". I think this class is in the package java.net.
An example entry in a policy-file could be: grant codeBase "http://123.123.123.123/ap/-" { permission java.net.NetPermission "setDefaultAuthenticator"; }; And one thing: That's not really a servlet question. Hope this helps, Timmi. > -----Ursprüngliche Nachricht----- > Von: A mailing list for discussion about Sun Microsystem's > Java Servlet API Technology. > [mailto:[EMAIL PROTECTED]] Im Auftrag von Nandish Angadi > Gesendet: Donnerstag, 10. Oktober 2002 14:23 > An: [EMAIL PROTECTED] > Betreff: security exception > > > Hi All, > I have a applet which access the database. When i > open it from teh browser i get a security exception. Now my > question is, in the java.policy file what permission will i > give it to access and update teh database. My applet is "BDApplet". > > Thanks for your time > > ______________________________________________________________ > _____________ > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: > http://java.sun.com/products/servlet/external-> resources.html > > LISTSERV Help: > http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html