Monday, August 26, 2002 12:28 PM
Write a servlet, which does something like this:
public void service(request, response) throws ...
InputStream pdf = ...;
OutputStream out = response.getOutputStream();
// read from pdf
// write to out
You can get the pdf stream from another servlet, a regular Java class, file, etc. You can also set some header, which implies the pdf document's suggested filename for the browser (although all browsers don't use that information).
This subject has been around for a while and the net is full of answers on different forums.