This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Problem in download file (pdf or xls) using DownloadAction class
Harish V Gupta
posted 3 years ago
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 :