This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem Downloading CSV file using Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem Downloading CSV file using Struts2" Watch "Problem Downloading CSV file using Struts2" New topic
Author

Problem Downloading CSV file using Struts2

Suresh Ganti
Greenhorn

Joined: Jun 12, 2011
Posts: 11
Hi,

I want to create and Dowload a CSV file using Struts2. I have created the csv file using DataOutput Stream and I have copied it into InputStream. The file is downloading but data is not there in the downloaded file. Can any one help me out of this problem. I am struggling from almost two days. Everything is coming good except writing data into the file.

This is my method which creates a CSV



This is my action



This is my action mapping




Please help me out.

Thanks in advance.
Suresh.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi there,
try
<param name="contentType">application/octet-stream</param>

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Downloading CSV file using Struts2
 
It's not a secret anymore!