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)?
After some pecan pie, you might want to cleanse your palatte with this tiny ad: