aspose file tools*
The moose likes Struts and the fly likes how to download file in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to download file in struts" Watch "how to download file in struts" New topic
Author

how to download file in struts

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1277

want to how to download file in struts of any time ...help required...


No Kaustubh No Fun, Know Kaustubh Know Fun..
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

download or upload?? What has Struts anything to do with downloading files??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Well, in Struts 1 you could stream a file to the client in an action, just like a download servlet (and return a null instead of an ActionForward). Or in Struts 2 use the "stream" result type. Both are documented on the web, although I pretty much just explained them both.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1277

Thanks guys I think I got one working solution ..

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to download file in struts