Hi, I am trying to generate a excel-report via a template and open it on the browser by MS Excel. (I use Turbine 2.3! )But I get the content displayed as plain text and therefore Excel do not start.
my test-code: $data.setLayoutTemplate("Excel.vm") $data.setContentType( "application/vnd.ms-excel" ) <table> <tr> <td>text1</td> <td>1</td> </tr> <tr> <td>text2</td> <td>2</td> </tr> </table> 1. the Layout "Excel.vm" contains "$screen_placeholder" only 2. tomcat web.xml-File contains <mime-mapping> <extension>xls</extension> <mime-type>application/vnd.ms-excel</mime-type> </mime-mapping> ... 3. TurbineResources.properties contains services.MimeTypeService.classname=org.apache.turbine.services.mimetype.TurbineMimeTypeService services.MimeTypeService.mime.types=/WEB-INF/conf/mime.types ... 4. mime.types contains application/vnd.ms-excel xls Is the template code correct? Are the configuration entries correct and complete? If I set the ContentType via $data.setContentType("application/vnd.ms-excel"), $data.getContentType() returns no MIME type string (both in the same template). If I use the default MIME types from turbine, then it works. Thank you for your time and help. Alex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]