1 Reply Latest reply on Jun 2, 2005 1:35 PM by marklarson

    setContentType() not working with SSL

    marklarson

      Hello, I have JBoss 4.0.2/Tomcat 5.5, using JasperReport 0.6.1
      I have a servlet that returns pdf/xls dynamically, which works for
      me under JBoss 3.2.3/Tomcat 4.1:

      response.setContentType("application/pdf");
      response.addHeader("Content-Disposition",
       "attachment; filename=returnFile.pdf");
      


      it will work with my HTTP Connector but not my SSL Connector:
       <Connector port="443" address="${jboss.bind.address}"
       maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
       emptySessionPath="true"
       scheme="https" secure="true" clientAuth="false"
       keystoreFile="${jboss.server.home.dir}/conf/my.keystore"
       keystorePass="passwd" sslProtocol = "SSL" />
      

      I have other webapps in the same container that work with the SSL, and even with setting contentType="image/jpg" for blobs
      Maybe a change in servlet 2.4?
      I could not find any info on this, any help would be appreciated
      -Mark