This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
file download dialog box - help me out
file download dialog box
Netscape 4.7 throws garbage instead of download file dialog box.
Cannot get Netscape 6.1 to open save as dialog box
.csv files are opend in the same browser withour displaying the download dialog box.