[EMAIL PROTECTED] wrote:

I am creating files using XML/FOP and then rendering it as PDF. This is
done within a servlet XXXServlet.java. Whats happening is that the PDFs are
generated with names like XXXServlet[1].PDF , XXXServlet[2].PDF etc..

I want to give my own name to these PDF files...How do I do that?

There are multiple possiblities, with details depending on what exactly you want to achieve. The most common question in this context is how to use a single URL for dynamically generating PDFs but provide a unique filename if the user wants to save the content from the browser. The answer is to use a MIME multipart response, and provide the PDF stream as file attachment. Code for this has been repeatedly posted, search the list archives.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to