3 Replies Latest reply on Jun 21, 2011 9:00 PM by duanxz

    problem :download files be opened by IE

    duanxz

      Hi,all

      I have installed jboss-5.1.0.GA on solaris
      i am facing a weird problem with my msi files when opened thru Jboss in IE.

      I have a JSP deployed on JBOSS which has links to a msi file and a xls file.

      The xls file opens up normally when the link is clicked on, but when the msi link is clicked it displays some ANSI characters in IE instead of opening the xls file correctly.

      In my application WEB-INF/web.xml has increased over the string shown below:
      ****************************************************
      <mime-mapping>
      <extension>xls</extension>
      <mime-type>application/vnd.ms-excel</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>cab</extension>
        <mime-type>application/x-cabinet</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>msi</extension>
        <mime-type>application/octet-stream</mime-type>
      </mime-mapping>
      ***************************************************
      The code of my jsp is as follows:
      <%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
      <html>
      <head>
      </head>
      <body>
      <h2>Testing File Links</h2>
      <hr/>
      <a href="ax_install_x32.msi" target="blank">ax_install_x32.msi</a>
      <br/>
      <a href="1.xls" target="blank">1.xls</a>
      </body>
      </html>


      in jboss-5.1.0.GA there hasn't "server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml",how can i do ??
      Any help with this will be greatly appreciated.
      Regards,
      duanxz