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?
Create a JSP page with the page directive and set
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.