Hello, Niall, Nice addition. Let me suggest that you indicate how to apply the content-disposition header with filename. That is where my knowledge runs out at this time. The difference in the JSP page between inline and attachment is what has me puzzled. I could just try various options and see what happens, but I like to understand these things.
Is the idea that where the header is inline the same browser page will display the file whereas with attachment the brownser will keep the same page and ask where you would like to store the downloaded file? Thanks. Jack On Fri, 26 Nov 2004 08:06:46 -0000, Niall Pemberton <[EMAIL PROTECTED]> wrote: > Rather than answer you here, I've created a page on the wiki with > examples... > > http://wiki.apache.org/struts/StrutsFileDownload > > I haven't actually used DownloadAction myself - but I am doing the same sort > of thing in my application. > > > > > Niall > > ----- Original Message ----- > From: "Richard" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, November 26, 2004 5:40 AM > Subject: Re: Sending Binary Files from Action > > > Hi Niall, > > > > Forgive but im a newbie. I dont know how I can use this. Definitely I > > will need to change my struts jar files. But do I extend this action > > or use it statically. What method do I use? > > > > Thanks > > Richard > > > > > > On Fri, 26 Nov 2004 05:32:09 -0000, Niall Pemberton > > <[EMAIL PROTECTED]> wrote: > > > Theres a new DownloadAction in Struts 1.2.6: > > > > > > > http://struts.apache.org/api/org/apache/struts/actions/DownloadAction.html > > > > > > Niall > > > > > > > > > > > > ----- Original Message ----- > > > From: "Richard" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Friday, November 26, 2004 5:18 AM > > > Subject: Sending Binary Files from Action > > > > > > > Hi Guys, > > > > > > > > I have created an expiring download link ( sent to users ) throiugh > > > > the use of tokens and actions. Now I have not the slightest idea how > > > > am I going to send the file to the user inside my actions. Can I use > > > > forwards over this? please help. > > > > > > > > Thanks > > > > Richard > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]