I’m trying create a new file with a Java Applet, but I don’t know how send this file to the response output of the browser, such as any typical webpage.
With a Servlet it is easy with javax.servlet.http.HttpServletResponse, but is this possible with a applet?
I’m trying do this without sign the applet or use any servlet.
Don’t use an applet for this. Go with the Servlet.
Why do you want to do this inside the applet? It will never be able to write anything to disk if you don’t sign it, and it can only communicate with the browser through some Javascript API, not send a file directly. You can combine the functionality in your applet perfectly with Servlets, and direct the browser to any relevant page:
That will open a new window in the browser, and download the file.