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-----
From: Paul Knepper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 10:12 AM
To: [EMAIL PROTECTED]
Subject: [Mav-user] excel

 

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

 

Reply via email to