RE: Struts newbie - Advice on file downloading

2009-05-17 Thread Steve
;filename="myfile.xml" as suggested by Dale. Cheers, Steve -Original Message- From: Richard Sayre [mailto:richardsa...@gmail.com] Sent: 13 May 2009 12:41 To: Struts Users Mailing List Subject: Re: Struts newbie - Advice on file downloading

Re: Struts newbie - Advice on file downloading

2009-05-13 Thread Dale Newfield
Richard Sayre wrote: filename="Report.pdf" That is an invalid contentDisposition value. We've recently fixed the documentation so that hopefully people will stop making this mistake. If you want it displayed in the browser: inline;filename="Report.pdf" If you want the browser to save it: at

Re: Struts newbie - Advice on file downloading

2009-05-13 Thread Mike Altieri
sistent Good luck! -Mike - Original Message > From: Richard Sayre > To: Struts Users Mailing List > Sent: Wednesday, May 13, 2009 7:41:01 AM > Subject: Re: Struts newbie - Advice on file downloading > > Hi, > > I have the following defined: > > > method="ge

Re: Struts newbie - Advice on file downloading

2009-05-13 Thread Richard Sayre
Hi, I have the following defined: application/pdf fileStream filename="Report.pdf" 1024 My action lookks like this public String generateReport() { //use api to build PDF //the api takes an output stream //so at th