Re: download binary content

2004-08-25 Thread Erik Weber
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

RE: download binary content

2004-08-25 Thread Daniel Perry
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, >

Re: download binary content

2004-08-25 Thread Erik Weber
(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

Re: download binary content

2004-08-25 Thread Stefan Groschupf
thanks a lot for all this hints! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: download binary content

2004-08-25 Thread Erik Weber
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

Re: download binary content

2004-08-25 Thread James Mitchell
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

RE: download binary content

2004-08-25 Thread Jesse Alexander (KXT)
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

RE: download binary content

2004-08-25 Thread Daniel Perry
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

download binary content

2004-08-25 Thread Stefan Groschupf
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