aspose file tools*
The moose likes Struts and the fly likes Netscape MIME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Netscape MIME" Watch "Netscape MIME" New topic
Author

Netscape MIME

Whitney Albrecht
Greenhorn

Joined: May 09, 2005
Posts: 19
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netscape MIME