I have an applet that creates PDF output (I used iText) based on user input, and I want to download the PDF output to the user.
I can write a servlet that creates the necessary PDF output, but I don't know how to add it to or combine it with my applet. Servlets seem to be independent programs.
Has anyone downloaded PDF files via an applet? Or is there a better way to do it?