I want to add a HTTP header property to a RenderResponse.
I’ve written a RenderFilter with which I gain access to the RenderResponse. Unfortunately, when I call setProperty and set a property, it never gets to the client. I’m checking this with Firebug.
The response hasn’t been comitted before.
JBoss 4.2.3 would be the Application Server version, the portal version is then probably 2.6.x or 2.7, right?
The portlet 2.0 api supported in portal 2.7 would allow you to set cache related properties using constants defined in MimeResponse. But I guess these also only apply to the communication between portal and portlet and don’t get passed on to the browser.
It might be possible to set HTTP headers using a custom layout implemented as a jsp. A scriptlet on that page should then have access to the actual response stream send to the browser.