Re: File download fails in Firefox and Chrome

2012-01-13 Thread Eric Lentz
> I was working with no issue until a month ago for over a year and suddenly it has stopped working I get that. Best thing to do would be to view the headers from a client that can do so. There are plug-ins in Firefox that will allow that I believe. I think you'll find that something is amiss w

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Thank you very much for your reply. Your suggestion worked though in IE the file is opened in a new tab as opposed to save but it works on Firefox. - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
)); in the action as opposed to configuration. I was working with no issue until a month ago for over a year and suddenly it has stopped working - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File dow

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Eric Lentz
> Not setting the Content-disposition is header, makes the firefox to prompt for the download but it uses the action for filename ie Ticket.action. > Has anyone faced a similar issue or can provide a hint on how to fix the issue Yep, saw this problem just this week. I ran the request through s

Re: File Download with multiple files. Design question

2010-11-21 Thread Paweł Wielgus
Hi Roger, below is Off-Topic as for struts. > That's what I'm doing, but the StreamResult requires an InputStream > which forces the intermediate step of creating a temporary file I'm not so sure, i haven't done it myself, but there were a discussion here some time ago pointing out that one can c

Re: File Download with multiple files. Design question

2010-11-20 Thread Roger Varley
On Sat, 2010-11-20 at 09:41 +0100, Paweł Wielgus wrote: > Hi All, > read about streamResult (I assume You use struts2), and also there is > no need for next action in chain, user can simply check as many files > as he wants and click download what will call downloadAction that will > simply return

Re: File Download with multiple files. Design question

2010-11-20 Thread Li Ying
> Any examples of doing this in struts 2 You can get the HttpServletResponse by: ServletActionContext.getResponse() And then, you can set the download file name, by: response.setHeader("Content-Disposition", "attachment; filename=" + fileName); And then, you can get the Out

Re: File Download with multiple files. Design question

2010-11-20 Thread Paweł Wielgus
Hi All, read about streamResult (I assume You use struts2), and also there is no need for next action in chain, user can simply check as many files as he wants and click download what will call downloadAction that will simply return zip file for download, after downoading user is still at the same

Re: File Download with multiple files. Design question

2010-11-19 Thread RogerV
Li Ying wrote: > > My suggestion: > > (1)I believe you can use ZipOutputStream to output the zipped data to > the response OutputStream directly, instead of a temp file. So no temp > file need to be created. > Hmm, write to the response.outputStream directly from within my action? That would

Re: File Download with multiple files. Design question

2010-11-19 Thread Li Ying
My suggestion: (1)I believe you can use ZipOutputStream to output the zipped data to the response OutputStream directly, instead of a temp file. So no temp file need to be created. OR (2)You can create a batch application, repeatedly run it with some interval (use cron or something). And in this

Re: File Download with multiple files. Design question

2010-11-19 Thread Rahul Mohan
Roger, In my project, we implemented a FileManager for storing, retrieving and cleaning up files. On upload, the filemanager creates a temp file on disk and stores the file-URL in a map correlated with the session id. We also implemented a SessionListener which calls FileManager.deleteFiles()

RE: file download issue

2009-10-19 Thread Tarun Chowdhry
ds, Tarun -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Sent: Monday, October 19, 2009 4:30 PM To: Struts Users Mailing List Subject: Re: file download issue Hi Tarun, double check that this InputStream is valid, i have such exception when i'm downloading not e

Re: file download issue

2009-10-19 Thread Paweł Wielgus
Hi Tarun, double check that this InputStream is valid, i have such exception when i'm downloading not existing files. Best greetings, Paweł Wielgus. 2009/10/19 Tarun Chowdhry : > Hi, > Getting the following exception when trying to call the FileUpload code: > Action class: > import java.io.*; >

RE: file download problem in application server

2009-03-27 Thread Shannon, Andrew
9 10:38 AM To: Struts Users Mailing List Subject: RE: file download problem in application server I assume your blob Class is Serializable? http://www.hibernate.org/hib_docs/v3/reference/en/html_single/ ? Martin __ Disclaimer and confidentiality note

RE: file download problem in application server

2009-03-26 Thread Martin Gainty
for the content provided. > Subject: RE: file download problem in application server > Date: Thu, 26 Mar 2009 08:20:19 -0400 > From: andrewshan...@pqa.com > To: user@struts.apache.org > > I was half wrong. It was a quirk for runnnig in OC4J but the Blob was > being mang

RE: file download problem in application server

2009-03-26 Thread Shannon, Andrew
I was half wrong. It was a quirk for runnnig in OC4J but the Blob was being mangled coming out of the data base (which I had previously ruled out, doh). Adding a property to the hibernate.properties file for: hibernate.jdbc.use_streams_for_binary=true fixed my problem. Otherwise file handling i

Re: File download problem in IE7 (struts 2) [SOLVED]

2008-06-05 Thread Gustavo Felisberto
In the documentation[1] for the Stream result type we have a: filename="contacts.xls" This was causing the problem. A simple change to: attachment;filename="contacts.xls" solved the issue. Hope this may help someone out there Gustavo [1] http://struts.apache.org/2.0.11.1/docs/stream-result.h

Re: File download problem

2007-08-28 Thread Dale Newfield
[EMAIL PROTECTED] wrote: I get the following error, when I try downloading files through the File download Struts2 application. I have given the Configuration detail and the Action class. Could someone take a look and let me know where this breaks? public InputStream getInputStream() throws E

RE: file download without opening a window

2006-12-07 Thread George.Dinwiddie
sers Mailing List > Subject: Re: file download without opening a window > > > Thanks. > > How can I add a header without opening a new window or redirect? > > - Original Message - > From: <[EMAIL PROTECTED]> > To: > Sent: Wednesday, December 06,

Re: file download without opening a window

2006-12-06 Thread Søren Blidorf
Thanks. How can I add a header without opening a new window or redirect? - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, December 06, 2006 11:02 PM Subject: RE: file download without opening a window add a header "Content-Disposition attachment; filename

RE: file download without opening a window

2006-12-06 Thread George.Dinwiddie
add a header "Content-Disposition attachment; filename=myFile.xml" using response.addHeader() > -Original Message- > From: Søren Blidorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 06, 2006 4:56 PM > To: Struts Users Mailing List > Subject: OT: file download without opening a w

Re: File download

2006-03-08 Thread P Y
204 or 304 ? http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1 On 3/9/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > did not find anything that would be of help. > > On 3/8/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > > > > Hmm... let me check that out. Will get back to you if

Re: File download

2006-03-08 Thread Madhav Bhargava
did not find anything that would be of help. On 3/8/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote: > > Hmm... let me check that out. Will get back to you if this does not work. > The purpose however is to know when the download is complete and to > refresh a JSP. > > --Madhav > > On 3/8/06, Davi

Re: File download

2006-03-08 Thread Madhav Bhargava
Hmm... let me check that out. Will get back to you if this does not work. The purpose however is to know when the download is complete and to refresh a JSP. --Madhav On 3/8/06, David Delbecq <[EMAIL PROTECTED]> wrote: > > If i remember well there are special http header that can be used to > tell

Re: File download

2006-03-08 Thread David Delbecq
If i remember well there are special http header that can be used to tell client the response is split in several part. This is mainly used when you send a partial response to client (like a html with table containing 3 rows) and after process advanced you send a more complete response (like the sa

Re: Re: file download problem

2006-01-19 Thread Dakota Jack
pg.photos.yahoo.com/ph//print_splash>to > get quality prints in your hands ASAP. > > > > -- Forwarded message -- > From: Dakota Jack <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Date: Wed, 18 Jan 2006 07:35:39 -0800 > Subject: Re: file do

Fwd: Re: file download problem

2006-01-18 Thread temp temp
I tried   content type as application/msword   but it did not help .Any other  ways to solve this problem? thanks & regards Note: forwarded message attached. Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP.--- Begin Message --- Just a thought. I

Re: file download problem

2006-01-18 Thread Dakota Jack
Just a thought. Isn't there a specific content type for .doc documents? That might solve your problem.I looked it up. .doc documents are "application/msword". Try that and see what happens. I am actually building a list of all the extensions and their content types. Hope this helps. On 1/18/

Re: File Download

2004-09-22 Thread Martin Gainty
D]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 4:59 AM Subject: RE: File Download Hi, One way to do this is to set a header named content-disposition with a value of attachment;filename=download.txt So the raw http header would look like this: content-disposition: attachment;filen

RE: File Download

2004-09-22 Thread Robert Shields
Hi, One way to do this is to set a header named content-disposition with a value of attachment;filename=download.txt So the raw http header would look like this: content-disposition: attachment;filename=download.txt This will cause your browser to open the standard open/save dialog. How you se