URLConnection/getOutputStream in Applet init/start
Posted on 2000-05-12
I have attempted to make a URLConnection to a servlet at the same address as the servlet that launched an applet(I have confirmed the address via getDocumentBase, both are on my PC) in the applet's init and start methods. The connection appears to work but when I do a getOutputStream (also in the applet's init and start methods) on the URLConnection I get a SecurityException (cannot access localhost). An URLConnection/getOutputStream to the same servlet works in a method that executes after init and start have completed.