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