I would imagine that your attempt to write to the servlet is violating some applet security restriction. Remember that applets can not write to the local file system, nor can they contact any server other then the base server where they were downloaded from. Look at the security restrictions a little more closely- perhaps you need to use a signed applet or run the servlet engine remotely.