I'm having problems with the Content-Disposition getting ignored when the
Content-Type has an application associated with it.  Does any one know how
to get around this?


If I do :

  response.setHeader( "Content-Disposition", "inline;filename=\"some.xxx\""
);

Result:

   The file is saved correctly.


Now I change it to:

  response.setHeader( "Content-Type", "application/x-MyApplication" );
  response.setHeader( "Content-Disposition", "inline;filename=\"some.xxx\""
);

Now that the Content-Type is set it finds the application and hands the file
over as a .jsp file instead of xxx.  So basically it is trying
"MyApplication /usr/tmp/2345321mxa.jsp" instead of "MyApplication
/usr/tmp/some.xxx".  Has anyone else run into this problem and have a work
around?  Any help would be appreciated.

I have also tried:
  response.setHeader( "Content-Type", "application/x-MyApplication" );
  response.setHeader( "Content-Disposition",
"MyApplication;filename=\"some.xxx\"" );
but it didn't work either.

It does work correctly with IE and Netscape on the Windows platforms.

I could be missing something but this is how I have interpretted it so far.


Mark Skluzacek
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to