> 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
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
));
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
> 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
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
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
> 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
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
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
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
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()
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
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.*;
>
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
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
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
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
[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
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,
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
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
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
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
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
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
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
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
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/
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
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
30 matches
Mail list logo