title: How to send a PDF to the browser from a Java webapplication?
body: <p>I have a java class that generates a PDF file to a folder in my computer. I have managed to connect  this class to a link on a web application and when i click this link it generates the pdf and writes it to the folder on my computer. I would want to change this and have the link send the pdf to the browser instead. How can i do this? The class does not use any HttpRequests or similar and the link isnt a hypertext link atm. Im looking for the most straight forward way to send a pdf to the browser. </p>