File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes download content is outputting to my browser not creating a download file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "download content is outputting to my browser not creating a download file" Watch "download content is outputting to my browser not creating a download file" New topic
Author

download content is outputting to my browser not creating a download file

Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
Hi I am trying to download file of xml created by my application.

I have the following action



Instead of getting the downlaod prompt TestResults are outputted straight onto my browser
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
You need to force it, it will default to the browser since it is XML

so need the following


Added attachment
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: download content is outputting to my browser not creating a download file
 
Similar Threads
StreamResult changes file name during download on Mobile phone
downloading a file ok; also want to navigate to another page in the same action not sure how to
PDF download Using Struts
Download file issue
Browser gets refreshed after file download in Struts2