Hi, I have written an applet to communicate with a servlet, my applet accepts information from user and sends some info to servlet when a button is clicked, and the servlet processes the information and returns a file(txt or gif), my problem is when the button is clicked servlet seems to write the file to the outputstream, but it doesn't come to the client, because applet is still running, I want to dispose this applet so that the dialog box for downloading the file appears.