;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
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
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
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
4 matches
Mail list logo