views:

325

answers:

2

I'm using tomcat 6.0 and struts2.

When I try to click on a link to download a .msi file on IE, the page loads up text from the .msi file instead.

Has anyone encountered this before? What can be done?

Thanks...

A: 

AddType application/octet-stream .msi in Tomcat

joe
where do you add that? I saw the .htaccess solution, but not sure where to place it? Do I have to restart Tomcat?
April
+2  A: 

Another guru told me to add this to tomcat/conf/web.xml:

<mime-mapping>
    <extension>msi</extension>
    <mime-type>application/x-msi</mime-type>
</mime-mapping>

And that works :)

April