Re: Excel, Struts and Downloading

2007-12-05 Thread Frank W. Zammetti
Indresh Chadha wrote: I need to download a file from the server using AJAX & Struts. Is this possible? No, it's not... well, assuming if by AJAX you mean using XMLHttpRequest, but since AJAX is a technique, arguably using things like hidden frames is still AJAX, and with that you could downlo

Re: Excel, Struts and Downloading

2007-12-05 Thread Indresh Chadha
I need to download a file from the server using AJAX & Struts. Is this possible? Frank W. Zammetti wrote: > > No, you don't need to implement StrutsFileDownload... What your doing > should work fine... Can you throw together a quick, simple application > that is nothing but a single Action th

Re: Excel, Struts and Downloading

2007-05-29 Thread Mike Baroukh
>however I don't get the download anymore.. no idea why. The only thing strange is >>> wb.write(stream); >>> stream.close(); I think you don't need close. Instead, eventually, use flush() ... What do you get when you write the stream to a file from the browser

Re: Excel, Struts and Downloading

2007-05-28 Thread Jon Wynacht
Thanks Frank. I was able to track down an issue with my SQL and have resolved it. I really appreciate this list...most of the time I lurk and glean nuggets of goodness but on occasion when I've had some questions and needed help...folks are there. Cheers! Jon On May 28, 2007, at 11:00 A

Re: Excel, Struts and Downloading

2007-05-28 Thread Frank W. Zammetti
No, you don't need to implement StrutsFileDownload... What your doing should work fine... Can you throw together a quick, simple application that is nothing but a single Action that writes out "ok" to the response and returns null? See if that works... if what you describe is accurate, it sure

Re: Excel, Struts and Downloading

2007-05-28 Thread Jon Wynacht
Hi Mike, Yup. I did that and no error is thrown now, however I don't get the download anymoreI'm thinking I need to implement StrutsFileDownload instead and that's my link? Thoughts? Jon On May 28, 2007, at 8:21 AM, Mike Baroukh wrote: Hi. Maybe it has worked before, but I think yo

Re: Excel, Struts and Downloading

2007-05-28 Thread Mike Baroukh
Hi. Maybe it has worked before, but I think you actually make an error : If you already send a stream back to the client, it's not logic to return "mapping.findForward()" because nothing else can be send to the browser at this point. You should simply return "null" ... Mike Jon Wynacht a