It's not a secret anymore!
The moose likes Struts and the fly likes Email Attachment download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Email Attachment download" Watch "Email Attachment download" New topic

Email Attachment download

vivek mahajan

Joined: Jun 18, 2009
Posts: 22
I am working on email application in struts, I want to download the attachments by opening the file dialog box on clicking the download link. How to do it ?
David Newton

Joined: Sep 29, 2008
Posts: 12617

Search the web for how to download files. If you're using Struts 1, stream the response yourself and return a null ActionForward. If you're using Struts 2, use the "stream" result type.
I agree. Here's the link:
subject: Email Attachment download
It's not a secret anymore!