Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netscape MIME

 
Whitney Albrecht
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a struts action that is getting data, converting it (transforming it w/xslt) and placing it directly on the HttpResponce, which goes back to the browser.

I set the following on the response variable:
setContentType("application/x-download");
setHeader("Content-Disposition", "attachment; filename" + filename);

If I use Firefox 1.5, when I click on the link (which calls the action), the download dialog box pops up with an option to save or open, then when I save or open the file the filename and extension is correct (g.txt). Howeever, when I use Netscape 7.02 and the dialog box pops us and I save and or open the file it add the additional .ax extension on the file name (*.g.txt.ax).

Anyone know why the difference in these two browsers? or why Netscape want to keep the struts action extension (.ax)?

Thanks,
Whitney
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic