[jira] [Resolved] (PLUTO-620) ResourceResponse & content-disposition

"Scott Nicklous (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/PLUTO-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Nicklous resolved PLUTO-620.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

fixed in Pluto implementation

> ResourceResponse & content-disposition
> --------------------------------------
>
>                 Key: PLUTO-620
>                 URL: https://issues.apache.org/jira/browse/PLUTO-620
>             Project: Pluto
>          Issue Type: Improvement
>          Components: portal driver
>    Affects Versions: 2.1.0-M2
>            Reporter: julien
>             Fix For: 2.1.0, 3.0.0
>
>
> I use serveResource in my portlet to comply jsr-286 when serving pdf dile.
> Unfortunalety I found no way to set content-disposition in http response header. (ResourceResponse.setProperty has no effect for this property).
> Example of code:
>     @Override
>     public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
>         if (EDITION_RESSOURCE_ID.equals(request.getResourceID())) {
>             response.setContentType("application/pdf");
>             response.setProperty("Content-Disposition", "attachment; filename=test.pdf");
>           .....
>         }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.