aspose file tools*
The moose likes Struts and the fly likes Problem in download file (pdf or xls) using DownloadAction class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in download file (pdf or xls) using DownloadAction class" Watch "Problem in download file (pdf or xls) using DownloadAction class" New topic
Author

Problem in download file (pdf or xls) using DownloadAction class

Harish V Gupta
Ranch Hand

Joined: Dec 17, 2011
Posts: 33
Hi guys, I am trying to download a file using DownloadAction class. It's not throwing any error. I am able to download the file but the downloaded file is being shown empty. For using DownloadAction class we need to extend it and implement getStreamInfo method. I am not extending my action class directly but I am instantiating a class in my action class which, in turn, is extending DownloadAction class and defining getStreamInfo function. Can this be a problem? I am using the following code snippet for downloading :

Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 484

Have you solved your problem?
It requires to see your DownloadAction class with its action method, plus FileStreamInfo class.


PM Me If You Want to get Urgent Help on Java Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in download file (pdf or xls) using DownloadAction class
 
Similar Threads
page is not shown only url is showing
Trying to get manageable arrays to work with
packages and CLASSPATH
Sending a jsp page as the content of an email
java.io.FileNotFoundException: Too many open files