Demo entry 6349627

responde to request

   

Submitted by anonymous on Feb 24, 2017 at 08:32
Language: Java. Code size: 448 Bytes.

 document.open();
            document.add(pdfGenerator.generate(list));
            document.close();

            // setting some response headers
            response.setHeader("Expires", "0");
            response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");
            response.setHeader("Pragma", "public");
            // setting the content type
            response.setContentType("application/pdf");

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).