Setting a Contenttype in a DSP

I’m using a DSP to display the output from a flow (IS 4.6), and I would like to add a “Save as Spreadsheet” link to the page. However, I cannot find a way to set the Content-type to something other than the HTML/XML/WML/HDML options specified in the Output Template. Can any of you point me in the right direction?

TIA

Create a JSP page with the page directive and set

contentType=“application/vnd.ms-excel”

But this would work only in WM 6

You can use pub.flow:setResponse to set the content type, but you will have to explicitly apply the template to the current pipeline using one of the pub.report services.

I would recommend that you make a wrapper Flow for your service that just does the pub.report and setResponse calls, so your existing service can be called by other services or Developer.