How to show message download started for PDF generated using PDFBox?

With help of this answer I have created a servlet which dynamically creates a downloadable PDF using pdfbox. PDF creation and downloading is working fine.

Now I want to show message to user that downloading will start in few seconds or something like that. How to do this? I tried searching this on Internet but I'm not able to find anything useful.

I tried using PrintWriter out = reponse.getWriter(); out.println("MESSAGE"); to print message on page but it throws exception HTTP Status 500 - getWriter() has already been called for this response....

Read More »

By: StackOverFlow - Monday, 16 April

Related Posts