wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 498

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
 
Consider Paul's rocket mass heater.
 
subject: Problem in download file (pdf or xls) using DownloadAction class
 
Similar Threads
java.io.FileNotFoundException: Too many open files
packages and CLASSPATH
Trying to get manageable arrays to work with
Sending a jsp page as the content of an email
page is not shown only url is showing