25 August 2004 16:14
To: Struts Users Mailing List
Subject: Re: download binary content
The difference between your implementation and mine is that I am not
setting the Cache-Control, Content-Disposition and Content-Length
headers. My download action seems to work fine in IE and Mozilla, but,
could
t; To: Struts Users Mailing List
> Subject: Re: download binary content
>
>
> The difference between your implementation and mine is that I am not
> setting the Cache-Control, Content-Disposition and Content-Length
> headers. My download action seems to work fine in IE and Mozilla, but,
>
(no forward!)
return null;
-Original Message-
From: Stefan Groschupf [mailto:[EMAIL PROTECTED]
Sent: 25 August 2004 14:46
To: Struts Users Mailing List
Subject: download binary content
Hi,
can someone point me to a resource that describe how to realize a
dowanload action?
Do I can write to
thanks a lot for all this hints!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Basically, in your Action's execute method:
response.setContentType("application/pdf");
File pdf = new File("/home/eweber/public/Foo.pdf");
InputStream in = null;
OutputStream out = null;
try {
in = new FileInputStream(pdf);
out = response.getOutputStream();
int bytesRead = 0;
byte[] buffer = new b
ROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 2004 9:46 AM
Subject: download binary content
> Hi,
> can someone point me to a resource that describe how to realize a
> dowanload action?
> Do I can write to the response obje
Sent: Wednesday, August 25, 2004 3:46 PM
To: Struts Users Mailing List
Subject: download binary content
Hi,
can someone point me to a resource that describe how to realize a
dowanload action?
Do I can write to the response object with out forwarding?
Thanks for any hints.
S
just outputs data (no forward!)
return null;
> -Original Message-
> From: Stefan Groschupf [mailto:[EMAIL PROTECTED]
> Sent: 25 August 2004 14:46
> To: Struts Users Mailing List
> Subject: download binary content
>
>
> Hi,
> can someone point me to a resource th
Hi,
can someone point me to a resource that describe how to realize a
dowanload action?
Do I can write to the response object with out forwarding?
Thanks for any hints.
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
9 matches
Mail list logo