remi.degruson
Jun 6th, 2006, 10:40 AM
Hi spring forum,
How to download from a portlet ?
My domain class create a pdf and the controller want to send it to the browser.
I don't want to use org.springframework.web.servlet.view.document.Abst ractPdfView
since I create the pdf using gnupdf.
I thought to just do something like response.getOutputStream.write((byte[])request.getAttribute("pdf")); in a jsp, but
response.getWriter() is called by another class, so I can't.
This forum contains some topics related download with servlet but none with portlet. The simplest way should be to call a servlet, how can I do that ?
Thanks for any help,
Rémi
How to download from a portlet ?
My domain class create a pdf and the controller want to send it to the browser.
I don't want to use org.springframework.web.servlet.view.document.Abst ractPdfView
since I create the pdf using gnupdf.
I thought to just do something like response.getOutputStream.write((byte[])request.getAttribute("pdf")); in a jsp, but
response.getWriter() is called by another class, so I can't.
This forum contains some topics related download with servlet but none with portlet. The simplest way should be to call a servlet, how can I do that ?
Thanks for any help,
Rémi