|
Put an “output-type” attribute on the transform element like this:
<view name=”foo”> <transform path=”blah.xsl” output-type=”application/vnd.ms-excel”/> </view>
You can see the various options in the javadocs for XSLTransformFactory:
http://mav.sourceforge.net/api/org/infohazard/maverick/transform/XSLTransformFactory.html
Jeff
-----Original Message-----
I am using betwixt and domify. I want to reuse the same controller to either output html (which I already do) and excel.
I added another command which uses a different xsl to format for comma separated value. But, the output method is text so it just shows as text in the browser. How do I change the content type so the browser things the response is application/vnd.ms-excel?
Thanks, Paul
|
- [Mav-user] excel Paul Knepper
- Schnitzer, Jeff
