In a turbine action, you have access to response headers, I'm using it
here in a "DownloadAction" this way :
data.getResponse().reset();
data.getResponse().addHeader("Content-Type","application/force-download"
);
data.getResponse().addHeader("Content-Type","application/octet-stream");
data.getResponse().addHeader("Content-Transfer-Encoding","binary");
data.getResponse().getOutputStream().write("YOUR
CONTENT");
return;
and this works fine ;)
Although I remember reading once on some mail-archive that turbine 2.3
won't allow this kind of behavior, I'll check this some day...
HTH,
Aurelien
Nicholas Nemtsev a ecrit :
> Hello All!
>
> An action of portlet generates PDF content, but changing ContentType
> of response (inside the action) has not effect. Result ContentType is
> text/plain. How can I resolve this problem?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]